• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: bulletmenu
PostPosted: Thu Jan 20, 2005 2:30 pm 
Offline
Forum Members
Forum Members

Joined: Tue Jan 11, 2005 11:22 am
Posts: 34
Location: France
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:
$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:
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: bulletmenu
PostPosted: Thu Jan 20, 2005 2:35 pm 
Offline
Administrator
Administrator
User avatar

Joined: Fri Jun 11, 2004 6:58 pm
Posts: 3332
Location: Fairless Hills, Pa USA
Good idea. Thanks.

_________________
http://about.me/tedkulp


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Hosting Nation - Managed CMSMS Hosting