bulletmenu

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
marties
Forum Members
Forum Members
Posts: 34
Joined: Tue Jan 11, 2005 11:22 am
Location: France

bulletmenu

Post by marties »

hi,
i made a little change on the bullet menu.
The problem : if i select the second link in my menu, i access to the page, from now in my menu i don't want the second link to be 'clickable' anymore, because i'm on the linked page !!!

Starting from line 111 to 119 in bulletmenu.php i made some replacement

original :

Code: Select all

$menu .= "<li><a href=\"".$onecontent->GetURL()."\"";
					if (isset($gCms->variables['page_id']) && $onecontent->Id() == $gCms->variables['page_id'])
					{
						$menu .= " class=\"currentpage\"";
					}
					$menu .= ">".$onecontent->MenuText()."</a>";
New :

Code: Select all

if (isset($gCms->variables['page_id']) && $onecontent->Id() == $gCms->variables['page_id'])
					{
						$menu .= "<li id=\"current\"";
						$menu .= ">".$onecontent->MenuText();
					}

					else
					{
						$menu .= "<li><a href=\"".$onecontent->GetURL()."\"";
						$menu .= ">".$onecontent->MenuText()."</a>";
					}
Hope that helps
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

bulletmenu

Post by Ted »

Good idea. Thanks.
Post Reply

Return to “Modules/Add-Ons”