Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two different menus
Author Message
egahen Offline
Junior Member

Posts: 4
Joined: Jan 2012
2012-01-27 19:06:51
Two different menus
Hi,

Let`s say I have 8 pages. I would like to link all this pages in two separately menus. I mean 4 pages goes to one menu (above content) and last 4 goes to the other menu (below content). I tried to achieve something like this in I18N Navigation plugin but I cant figure it how to make such a thing. Is it possible to make something like this?

Best regards & sorry for bad englishSmile
Egahen
Find all posts by this user Quote this message in a reply
mvlcek Offline
Posting Freak

Posts: 1,764
Joined: Jan 2011
2012-01-27 19:18:46
Two different menus
egahen wrote:Let`s say I have 8 pages. I would like to link all this pages in two separately menus. I mean 4 pages goes to one menu (above content) and last 4 goes to the other menu (below content). I tried to achieve something like this in I18N Navigation plugin but I cant figure it how to make such a thing. Is it possible to make something like this?

You could do this by putting the pages under two dummy parent pages (make sure to set 'add to menu' for them), e.g.:
Code:
dummy-top
    index
    page1
    page2
    page3
dummy-bottom
    page4
    page5
    page6
    page7

Then you can display the menus like this:
Code:
<?php
$bc = return_i18n_breadcrumbs(return_page_slug());
// top menu
get_i18n_navigation($bc[0]['url']=='dummy-top'?return_page_slug():'dummy-top',1,99);
...
// bottom menu
get_i18n_navigation($bc[0]['url']=='dummy-bottom'?return_page_slug():'dummy-bottom',1,99);
?>

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)

Contact Us | GetSimple | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication
Generate Leads from Documents vCard Hosting