2011-05-24, 03:09:35
polyfragmented Wrote:Is there a way I can call a (sub) menu starting from a given parent? I didn't find such an option in the documentation. I could use such a custom sub nav for a current project.
If you want to show all children of top-level page my-page, use one of
Code:
# all children:
get_i18n_navigation('my-page',1,1);
# whole sub menu tree, all entries shown
get_i18n_navigation('my-page',1,99,I18N_SHOW_MENU);
# sub menu tree, only path to page and children of page shown:
get_i18n_navigation('any-page-in-sub-menu-tree',1,99);
polyfragmented Wrote:I'm now seeing that the complete menu is output with the sub entries being simply commented out. I'm not saying it's a huge increase in page size, but for my site which has quite a few sub pages, the commented out markup amounts to several kB... I'm sure you've got a reason for doing it this way? Just out of interest, what is the reason?
Maybe you patched the plugin or have two get_i18n_navigation calls in your template, because the original I18N plugin doesn't output commented out menu entries.