2012-08-20, 14:10:46
For external links, with I18N Navigation (requires I18N plugin) you can see how to accomplish that here (half way down page "Internal/External Links").
If your top-level pages are all part of the menus you want to create (besides the external links at this point) then you can probably get away with using I18N Navigation to generate the top-level nav HTML then use CSS to hide individual links from it. For example, I usually jam a page's slug into body and also it's parent as a class like so:
With that in place, it's just a matter of hiding and showing navigation links using CSS, first hiding the links in a general sense, then adding them back on the home page with the `body#d-index` selector.
That said, I think there's a general need here for either a minor change to I18N Navigation which accepts an array of slugs as the first parameter and instead builds a custom menu from that set, or a new plugin that does this, maybe with the same "component" parameter for output flexibility.
If your top-level pages are all part of the menus you want to create (besides the external links at this point) then you can probably get away with using I18N Navigation to generate the top-level nav HTML then use CSS to hide individual links from it. For example, I usually jam a page's slug into body and also it's parent as a class like so:
Code:
<body id="d-<?php get_page_slug(); ?>" class="p-<?php echo (get_parent(false) != '') ? get_parent(false) : 'orphan' ?>">
With that in place, it's just a matter of hiding and showing navigation links using CSS, first hiding the links in a general sense, then adding them back on the home page with the `body#d-index` selector.
That said, I think there's a general need here for either a minor change to I18N Navigation which accepts an array of slugs as the first parameter and instead builds a custom menu from that set, or a new plugin that does this, maybe with the same "component" parameter for output flexibility.