Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 01:13 am EST

Geeklog Forums

Menu Item... yes again


Anonymous

Anonymous
Okay, I need to remove and modify some of the menu items...the built in ones. Instead of saying say "Calendar" I need it to say something else. After researching this on the site, I have seen instructions to modify the header.thtml since this is where the varialble is called. BUT where is the variable {menu_elements} defined? I have looked for 3 hours now. Help
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
If you want to change the name of the menu item - the label - then you can change that in the language file. For core Geeklog components each language file is is under the geeklog_dir/language directory. Plugins typically have their own language file.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Anonymous

Anonymous
What if I wanted to add a new item to the menu?
 Quote

Anonymous

Anonymous
you'll need to edit the header.thtml file in your theme. public_html/layout/XSilver/header.thtml assuming XSilver is your theme.
 Quote

Anonymous

Anonymous
You will have to hardcode the new links in rather then using the {menu_elements} variable. Just add them in the header.thtml. Example: Remove {menu_elements} and add <a href="http://www.yourpage.com/something/">Menu Item</a> for each one of the menu items you wish to have. The {menu_elements} variable is not currently setup to easily redefine the menu links. If you want to just change the text then use the language file, other wise you will have to code them in. Hope that helps!
 Quote

Anonymous

Anonymous
That did the trick. Thanks all!
 Quote

All times are EST. The time is now 01:13 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content