?
Solved

Creating a second menu with joomla 1.5

Posted on 2008-10-28
5
Medium Priority
?
2,915 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 1000 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

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
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 video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

621 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