Tuesday, May 22nd

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

Module to display active top level mainmenu item
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Module to display active top level mainmenu item

Module to display active top level mainmenu item 11 months, 3 weeks ago #4289

  • littleET
  • OFFLINE
  • Senior Boarder
  • Posts: 79
  • Karma: 1
I'm looking for a module which will display the active top level main menu item and just wondering if anyone knows if one exits as I can't seem to find one.

For example if I have mainmenu items across the top of my site such as those here:

HOME | COMMUNITY | FORUM | DIRECTORY ...
and several of these has dropdown submenus, then when you click on any of the pages say in Community I would like in the left column above the list of submenus to show the section that the user is in being the heading COMMUNITY as below

COMMUNITY
- Sub menu 1
- Sub menu 2
- Sub menu 3

I hope this makes sense as it is a little hard to explain.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4302

Have a look at ausinterconnect.com.au/our-solutions/hosting/basic-plan.html and let me know if this is what you are trying to achieve. If so It is a no brainer really and I can let you know.

cheers

Shane
Moderator for MJUG forum.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4304

  • littleET
  • OFFLINE
  • Senior Boarder
  • Posts: 79
  • Karma: 1
Hi Shane,

Are you referring to the breadcrumbs on this site? as this is not what I am looking for and I can't really see anything on here which is what I mean. This page here will show you what I mean. See the white text in red panel to the left of the images? It shows the active top menu item for that section and when you click on any of the sub menu items it still shows you which parent mainmenu item section you are in. Click on anything under "Services" for example and it always says Services.

In this case I have achieved this by putting the text in an image in a module and telling that module to display on a particular page. But for the site I am working on I want to use a module which will automatically display the text.

Hope this makes sense.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4305

That is what I have detailed to you on our site in earlier response. Go to ausinterconnect.com.au/ and you can see Information links on top right module area.
Navigate to any itme in the top menu ie Our Solutions -> Basic Plan to display the option. The Information links Module will then display all options available under Our Solutions and all items can be navigated from the Inforamtion links module.

Try different options from top menu ie Web Services and Info Centre to see variables at work.

I think this is what you are trying to explain - Nothing to do with Breadcrumbs at all.

Cheers

Shane
Moderator for MJUG forum.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4306

  • littleET
  • OFFLINE
  • Senior Boarder
  • Posts: 79
  • Karma: 1
Shane,

Yes creating the sub menu is not the issue. In relation to your site what I would want is a heading above that sub menu that said "Our Solutions".

This is because my main menu is small in size but I want to highlight quite separate to just an active menu a heading for the section.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4307

Now I think I see. Where we have Information Links as a set module title you need the actual menu item ie Our Solutions to display and then change when another item is selected ie Web Services in our case.

I will have to get one of our techs to have a look tomorrow as that is a bit beyond my limited capabilities I am afraid. Doesn't appear to be too drastic on the surface of it though.

Will drop you a line tomorrow

Cheers

Shane
Moderator for MJUG forum.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4308

  • Jennifer
  • OFFLINE
  • Expert Boarder
  • Posts: 101
  • Karma: 3
Can't you just create a new menu, calling it the sub menu name, and create alias links to those pages you want to display - with those alias links just copying the ones in your main menu drop down? And then you just set to display that menu module in your left or right column on those particular pages?

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4309

That makes pretty good sense as well Jen. Guess thats why I ahve the tech heads here to help me out (lol)

Cheers

Shane
Moderator for MJUG forum.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4310

  • littleET
  • OFFLINE
  • Senior Boarder
  • Posts: 79
  • Karma: 1
Shane - yes that is exactly what I mean.

Jennifer - I'm a little confused
Are you saying I should go to Menus > Menu Manager and create 1 new menu with individual menus items as per my main menu without the submenus and with each menu item using an Alias link?

I will give this a try tomorrow and see if I can work it out tomorrow and let you know.

Thanks

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4312

  • Jennifer
  • OFFLINE
  • Expert Boarder
  • Posts: 101
  • Karma: 3
Do this:

Go to Menu Manager and create a new Menu called Community.

Then in that new Menu, create your menu links - each will be an alias to the sub-menu items under the Community section.

Then in your Module manager, set the module to left or right, wherever you want it, and set it to only show on the menu items for Community in the main menu and the new sub-menu.

If you need any more help, let me know.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4316

  • littleET
  • OFFLINE
  • Senior Boarder
  • Posts: 79
  • Karma: 1
Hi Jennifer,

Showing the sub menu in the left column is not the issue. I have actually achieved this by simply creating a new module under Extensions > Module > New > Menu and then setting the menu to start at level 1 and to display in the left column so I don't manually have to create duplicates of the main menu.

What I want is a separate module which would show the word Community above the sub menu in the left column. Then if you were in another section that heading would change based on the parent menu id.

I've put a link in an earlier reply to this topic which shows what I mean on another site. One which I have done but the heading is part of an image which I tell to display on certain pages.

What I wanted was a module which I guess would automatically detect the parent menu it and display that menu name. But I don't want it to be a link.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4318

  • Jennifer
  • OFFLINE
  • Expert Boarder
  • Posts: 101
  • Karma: 3
I think I know what you mean but personally I would just do it the way I suggested - I use this method all the time for sub-menus throughout sites.

Good luck!

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4320

  • littleET
  • OFFLINE
  • Senior Boarder
  • Posts: 79
  • Karma: 1
So this way you set the module title to show to get the heading?

It just means that when a new sub menu is added I have to remember to add it to the additional menu created.

I appreciate your help and suggestions. Thanks.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4321

  • Jennifer
  • OFFLINE
  • Expert Boarder
  • Posts: 101
  • Karma: 3
Yes for module heading and yes, it does make it a manual process to add any new sub-menu items from your main menu also into these sub-menus.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4322

For what its worth I just had one of our designers check in and she also agrees with Jen on this.

Cheers

Shane
Moderator for MJUG forum.

Re: Module to display active top level mainmenu item 11 months, 3 weeks ago #4325

  • littleET
  • OFFLINE
  • Senior Boarder
  • Posts: 79
  • Karma: 1
OK, thanks Shane.

Re: Module to display active top level mainmenu item 11 months, 2 weeks ago #4341

  • PtrNrs
  • OFFLINE
  • Administrator
  • Posts: 235
  • Karma: 10
I see there's been a fair bit of traffic on this already but here's my bit . . .

The code to do what you're after is pretty simple - you can get the menu ID from the ItemID parameter in the web address and then you'd work you way up to the top level of the menu and display the text.

If you've got got a module you want to stick the code in, I'd be happy to help you out - probably 1-2 hours work.

Pete
Pete Nurse,
Melbourne Joomla User Group www.joomla.org.au/melbourne-user-group
Last Edit: 11 months, 2 weeks ago by PtrNrs.

Re: Module to display active top level mainmenu item 11 months, 2 weeks ago #4342

  • PtrNrs
  • OFFLINE
  • Administrator
  • Posts: 235
  • Karma: 10
No it was easier than that.

Have a look at the Feed Display module here.
Pete Nurse,
Melbourne Joomla User Group www.joomla.org.au/melbourne-user-group
Last Edit: 11 months, 2 weeks ago by PtrNrs.

Re: Module to display active top level mainmenu item 11 months, 2 weeks ago #4343

  • littleET
  • OFFLINE
  • Senior Boarder
  • Posts: 79
  • Karma: 1
Hi PtrNrs,

I think the Feed Display module is pretty much what I am looking for, but without the module title displaying. Instead the text which is displaying would look more like a heading. So is it a dynamic thing - which updates itself once created?

Re: Module to display active top level mainmenu item 11 months, 2 weeks ago #4345

  • PtrNrs
  • OFFLINE
  • Administrator
  • Posts: 235
  • Karma: 10
Yes, I just reused the (already existing) feed module to demonstrate the solution, hence the module title.
Pete Nurse,
Melbourne Joomla User Group www.joomla.org.au/melbourne-user-group
  • Page:
  • 1
Time to create page: 0.79 seconds
You are here: Forum