Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
two different menus for site
#1
Hello all.
Tell me please how to create a similar menu for the sidebar, as done here on this site
--> http://www.lavellelaw.com/ ("Our Practice Groups")

Tried to make such a menu using the plug I18N, do not quit. ;(

Tell me which plugin should be used ?
Reply
#2
diosmedia Wrote:Hello all.
Tell me please how to create a similar menu for the sidebar, as done here on this site
--> http://www.lavellelaw.com/ ("Our Practice Groups")

You don't need a plugin. It's just a list of links, which you enter in your "Sidebar" component.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
Perhaps you want to show child pages in the sidebar what I also tried hard to find out how, but found rather easy programming it in the template (see http://de.humanet.tk/about for the result) (plugin would be the more elegant place to do such a thing at, but this still works) (thanks to the useful page "Theme: Template Tags"):
Code:
// get children in the array $childli
$childli=array();
foreach(menu_data() as $page){
  if($page['parent_slug']==return_page_slug()){
    $childli[$page['slug']]=$page['title'];
  };
};

// create html-ul list of linked child pages in $men
if(array()<$childli){
  $men='  <h2>'.return_page_title().'</h2><ul>';
  foreach($childli as $chslug=>$chtitl){
    $men.=('
<li><a href="'.$chslug.'">'.$chtitl.'</a></li>');
  };
  $men.='</ul>
';
}else{
  $men ='';
};

Then add <?php echo($men);?> within the html-div element you styled as a sidebar.
Reply
#4
http://get-simple.info/forum/topic/770/g...rity-menu/
to create different menus on the site I use this one plug-in, the only drawback that I have to when you add pages and change the number of
top <ul id="top"><?php gbp_menu(return_page_slug(),1,5); ?></ul>
left <ul id="left"><?php gbp_menu(return_page_slug(),6,100); ?></ul>
need to add the numbers in the drop-down list in the menu
Reply
#5
Thank you all very much helped me.
Get-simple - Power! Wink
Reply




Users browsing this thread: 1 Guest(s)