2011-07-02, 03:10:12
I don't wan't to be ungrateful, but this navigation s**ks!
I've got this:
-year 2011
--users 2011 (V)
--gallery 2011 (V)
--sponsors 2011 (V)
-archive (V)
---2010
----users
----gallery
----sponsors
-contact (V)
-home (V)
(V) - Visible in menu.
preaty simple, right ?
And it does worked with get_navigation(), it shows in menu all pages that was added as Visible..
But when I use get_i18n_navigation() i just can force it to show all pages as i want.
get_i18n_navigation('index',0,9,I18N_SHOW_MENU); cool, this show all pages... but only if there is a path to each page.
It will not show 'users 2011', 'gallery 2011' in menu until year 2011 isn't switched to be visible.
Next thing:
Ok I've made 'year 2011' to be visible in menu, but i don't want to have <ul> nested in next <ul>
so:
If
php get_i18n_navigation('index',0,9,I18N_SHOW_MENU);
shows all pages from level 0 to 10, so that does mean that:
get_i18n_navigation('index',1,9,I18N_SHOW_MENU);
should show the sam pages like function above, but without level 0.
But You know what ? It does not!! it shows nothin.
This plugin (i18n) is great.. really! But navigation s**ks!
I've got this:
-year 2011
--users 2011 (V)
--gallery 2011 (V)
--sponsors 2011 (V)
-archive (V)
---2010
----users
----gallery
----sponsors
-contact (V)
-home (V)
(V) - Visible in menu.
preaty simple, right ?
And it does worked with get_navigation(), it shows in menu all pages that was added as Visible..
But when I use get_i18n_navigation() i just can force it to show all pages as i want.
get_i18n_navigation('index',0,9,I18N_SHOW_MENU); cool, this show all pages... but only if there is a path to each page.
It will not show 'users 2011', 'gallery 2011' in menu until year 2011 isn't switched to be visible.
Next thing:
Ok I've made 'year 2011' to be visible in menu, but i don't want to have <ul> nested in next <ul>
so:
If
php get_i18n_navigation('index',0,9,I18N_SHOW_MENU);
shows all pages from level 0 to 10, so that does mean that:
get_i18n_navigation('index',1,9,I18N_SHOW_MENU);
should show the sam pages like function above, but without level 0.
But You know what ? It does not!! it shows nothin.
This plugin (i18n) is great.. really! But navigation s**ks!