Solved

Creating a second menu with joomla 1.5

Posted on 2008-10-28
5
2,825 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
Comment Utility
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
Comment Utility
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
Comment Utility
<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
Comment Utility
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
Comment Utility
No worries, glad i could help :)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now