web hosting line
1.866.605.2484

Web hosting

Go Back   Web Hosting Forum - Web hosting discussion at SiteGround.com > Popular Software > Mambo and Joomla Forum

Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2009, 06:39 AM
Mr Benn Mr Benn is offline
Junior Member
 
Join Date: Oct 2009
Posts: 6
Default How to add menu tabs

Hi guys, fairly newbie here (1 month old ! )

I am using the following template http://joomla.siteground.com/index.p...=siteground99#

My website is www.just4ubirmingham.com

I would like to have 2 , linked , changes to the template. I hope somebody can help.

I would like to have more 'menu tabs' , that is the tabs across the top of the page from left to right , and have no menu down the left hand side of the page.

It currently has 5 tabs, but I cant work out how to add more ? It does seem to be linked to the 'main menu' , as every time I change the items on there, it is reflected in the tab descriptions as well i.e the first 5 items on the Main menu are displayed on the tabs. However, no matter how many items are on the main menu, I only see 5 tabs.

I thought the tabs may be controlled by the 'top menu' , but the options in there don’t correspond at all to what's displayed on the screen.

I have found that if I unpublish all the items on the Main Menu , then the menu box on the left does go, but that in turn is deleting the tab displays across the page as well !

Mambo version 6.2

Any help much appreciated.
Reply With Quote
  #2  
Old 10-27-2009, 11:03 AM
Niko's Avatar
Niko Niko is offline
SiteGround Team Member
 
Join Date: May 2007
Posts: 288
Default

Hello Mr Benn,

If you do not want to have the main menu displayed at the left column of your Mambo, you can unpublish the menu from the "Modules -> Site Modules" section in the back-end.

As for having more than 5 items displayed on the horizontal top menu, you have to alter the following file:

<your Mambo directory>/templates/siteground99/menu.php

On line 9 in this file you should see the following query:

$qry = "SELECT id, name, link FROM #__menu WHERE menutype='mainmenu' and parent='0' AND access<='$gid' AND sublevel='0' AND published='1' ORDER BY ordering LIMIT 5";

Change the "LIMIT 5" at the end of that line to "LIMIT 10" for example (in order to display 10 items), which would make the line as follows:

$qry = "SELECT id, name, link FROM #__menu WHERE menutype='mainmenu' and parent='0' AND access<='$gid' AND sublevel='0' AND published='1' ORDER BY ordering LIMIT 10";
__________________
Best Regards,
Niko
SiteGround Technical Support Team

Join us on Facebook
Follow us on Twitter
Web Hosting Suitable for You!
Reply With Quote
  #3  
Old 10-29-2009, 08:18 AM
Mr Benn Mr Benn is offline
Junior Member
 
Join Date: Oct 2009
Posts: 6
Default

Hi Niko.

I have managed to get more menu tabs working. Thanks

I will try the unplish on the main menu later

Thanks for your help
Reply With Quote
  #4  
Old 10-29-2009, 08:30 AM
Val's Avatar
Val Val is offline
SiteGround Team Member
 
Join Date: Jun 2005
Posts: 672
Default

I'm glad to hear the solution worked
__________________
Val

SiteGround Technical Support Team

Join us on Facebook
Follow us on Twitter
Web Hosting Suitable for You
Reply With Quote
  #5  
Old 10-29-2009, 02:45 PM
Mr Benn Mr Benn is offline
Junior Member
 
Join Date: Oct 2009
Posts: 6
Default

I have tried unpublishing the main menu as you suggested via the module manager - it still has the effect of giving an error on the front page :

The page you are trying to access does not exist.
Please select a page from the main menu.
This is from page404.php

And it doesnt display the 'item' I have attributed to the 'front page'.
Its as if it has some link embedded in it ?

And just a reminder, if I then click on the 'home' menu option, the page displays okay.
Reply With Quote
  #6  
Old 10-31-2009, 07:40 AM
Mr Benn Mr Benn is offline
Junior Member
 
Join Date: Oct 2009
Posts: 6
Default

Well , not sure how ,, but a combination of unpublishing items , seems to have resolved the issue.

Thanks.
Reply With Quote
  #7  
Old 10-31-2009, 07:54 AM
Niko's Avatar
Niko Niko is offline
SiteGround Team Member
 
Join Date: May 2007
Posts: 288
Default

Hello Mr Benn,

I am glad that you have managed to resolve the problem and your website is working as expected.
__________________
Best Regards,
Niko
SiteGround Technical Support Team

Join us on Facebook
Follow us on Twitter
Web Hosting Suitable for You!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
browser tabs Scottinsitka Other Topics 2 10-22-2009 04:33 AM
Top menu looks not ok Pollekeq Mambo and Joomla Forum 4 06-16-2009 06:08 AM
Menu links not consistent on Left vs Top menu? jtzako Mambo and Joomla Forum 1 07-11-2008 11:38 AM
Menu almooj Free Joomla Templates 1 06-24-2008 04:05 AM
how can we have a tree menu like dhtml tree XP menu in Joomla kumaresh Mambo and Joomla Forum 1 06-01-2007 03:53 AM


All times are GMT -5. The time now is 09:32 PM.

Copyright © SiteGround.com Inc