Solved

Creating a second menu with joomla 1.5

Posted on 2008-10-28
5
2,867 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 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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
php, ckeditor 10 182
Create a simple login Form in Drupal 1 421
Twitter: Any way to list my retweeter who I do not follow? 6 126
SharePoint 2013 vs Confluence 2 144
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decadeā€¦

738 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