Solved

Creating a second menu with joomla 1.5

Posted on 2008-10-28
5
2,857 Views
Last Modified: 2011-10-19
Hello,
I'm using Joomla 1.5 for the first time. Its for a very simple site that has a banner with a horizontal menu underneath it and the main menu down the side. I've designed it from scratch and have created the template and articles. Etc. I've created 2 seperate menus with the menu manager - one called main menu (which will be the side menu) and one called menubar which will be the horizontal one. I've also allocated the articles to the relevant menu links. I can display the side menu with:
<jdoc:include type="modules" name="left" />
but can't figure out how to display the menu bar.
Any help very gratefully received.
0
Comment
Question by:DallySP
  • 3
  • 2
5 Comments
 
LVL 6

Expert Comment

by:gxp071
ID: 22829858
When you create a menu it create a module in the module manager for that menu at the same time, you need to go to the module manager and tell it where you want the module for you new menu to be displayed, i.e. in the left, slot, public, published and on what pages.

If you cant find the module you can add another using the add button and select the menu type.

the module manager is found under the extensions tab.
0
 

Author Comment

by:DallySP
ID: 22831858
I have created the menu in the module manager. I have two menus: my main menu and a second one called menubar. I can get the menubar menu to display underneath the main menu, so I guess it gets picked up by this code snippet: <jdoc:include type="modules" name="left" />. But I want to position it in a different place in the code. I've been reading every bit of info I can find on modules and templates but can't seem to get my head round how to link the module to the 'jdoc:include' include code snippet. Can you explain how this works?
0
 
LVL 6

Accepted Solution

by:
gxp071 earned 250 total points
ID: 22832346
<jdoc:include type="modules" name="left" />  creates a module slot,  called 'left'

You can create as many or as few slots as you need or want in your template, the default joomla theme has loads,

left, right, menu, top, footer, user1, user2, user3, user4, etc...

these slots can then be selected in the module manager under position allowing you to pick and chooses in which slot you want a specific module to appear.  

They must also be defined in the theme xml manifest templateDetails.xml in the theme folder as well for them to appear as options in the module manager.  I have attached a image of a commercial theme with the slots highlighted for illustration.

//sample from rhuk_milkyway theme templateDetails.xml
	<positions>
		<position>breadcrumb</position>
		<position>left</position>
		<position>right</position>
		<position>top</position>
		<position>user1</position>
		<position>user2</position>
		<position>user3</position>
		<position>user4</position>
		<position>footer</position>
		<position>debug</position>
		<position>syndicate</position>
	</positions>

Open in new window

module-positions.jpg
0
 

Author Comment

by:DallySP
ID: 22832589
That explains is so much more simply!! I understand the process now. Thanks very much for your help. I may need to come back on to figure out how to ditch some tables - but I'll put that in another question.

thanks again.
0
 
LVL 6

Expert Comment

by:gxp071
ID: 22832639
No worries, glad i could help :)
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question