?
Solved

Creating a second menu with joomla 1.5

Posted on 2008-10-28
5
Medium Priority
?
2,889 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Read about how to approach blogging and about ways to do it right. Stand out from the crowd and let your knowledge be consumed by a large audience. This article aims to explain how your blog should look like,  the most important things to do while b…
There is a massive demand for content on the web right now, and it doesn't look like it's going to stop any time soon. But, if you are running a business blog, it's not just enough to offer your audience lots of content. It needs to be high-quality…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

741 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