Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-level navigation and easy menu definition
#59
fabsn Wrote:i use this plugin to generate 3 different menus with a similar technique described in this thread http://get-simple.info/forum/topic/1025/...ersidebar/
...

You can achieve this doing the following - assuming slugs "navi-top-1" and "navi-left-1" (without blanks) instead of "header link 1" and "left link 1":
  • put "navi-top-1" and "navi-left-1" into the menu
  • hide them in the main menu by adding a css rule (assuming id main-nav for the main menu):
Code:
#main-nav .navi-top-1, #main-nav .navi-left-1 { display: none; }
  • display the menus the following way:
Code:
<?php
  $bc = return_i18n_breadcrumbs(return_page_slug());
  get_i18n_navigation($bc[0]['url']=='nav-top-1'?return_page_slug():'nav-top-1',1,3);
  ...
  get_i18n_navigation(return_page_slug(),0,1);
  ...
  get_i18n_navigation($bc[0]['url']=='nav-left-1'?return_page_slug():'nav-left-1', 1, 3);
?>

Alternatively you could also put the main menu below another page, however then you might get a problem with the home page (if you want to show it in the menu) and fancy urls, if you use the parent slug.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Multi-level navigation and easy menu definition - by mvlcek - 2011-08-27, 18:45:56



Users browsing this thread: 5 Guest(s)