manually add link in bulletmenu

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
sydneysunshine

manually add link in bulletmenu

Post by sydneysunshine »

Hello! My client is having trouble fitting the menu on her very narrow top navigation bar and has asked for the home link to appear only in the left menu (which is a plain bulletmenu). Can someone help explain how to manually add the code in?

Currently I have just entered a link above the bulletmenu (i.e within the div) but the design and css make it look kinky, so I'm wanting it to actually be the first link in the bulletmenu only. If it's possible (and if we don't change our mind) ;)

I'm currently using 0.11.2.

Test page: http://www.bridges.org.au/cms/index.php?page=about
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: manually add link in bulletmenu

Post by Ted »

Open up plugins/function.bulletmenu.php.  At roughly line 43, you'll find:

Code: Select all

$menu .= "<div class=\"bulletmenu\">\n";
and do something like:

Code: Select all

$menu .= "<div class=\"bulletmenu\"><a href=\"index.php?page=home\">Home</a>\n";
sydneysunshine

Re: manually add link in bulletmenu

Post by sydneysunshine »

Thanks Wishy! That's exactly what I needed!
Locked

Return to “CMSMS Core”