2014-03-09, 01:56:21
i'm trying do a onepage template.
i'm want to use a menu from "submenu" as default. i'm was input a name "menuone" to menu with one have a childrens (submenus).
i'm use a:
but problem is with sorting..
subval_sort($pagesArray,'menuOrder');
is not working with i18N navigation structure..
i'm use this methood navigation structure in front-end, this is not sorting pages from I18N structure.
only when i edit a page and click "save" in front end foreach is sorting with a good order:
example:
in I18N navigation structure i have:
+ home page
+ menuone
L about us
L contact
L gallery
+ seccond menu
in front end is ok. but when i change a I18N structure to example
+ home page
+ menuone
L gallery
L about us
L contact
+ seccond menu
then in front-end is still old sorted... nothing change
there is any way to sort with foreach in front-end pages with I18N plugin ?[/code]
i'm want to use a menu from "submenu" as default. i'm was input a name "menuone" to menu with one have a childrens (submenus).
i'm use a:
PHP Code:
<?php
global $pagesArray;
$pagesSorted = subval_sort($pagesArray,'menuOrder'); // or 'title', 'menu', 'url', ...
foreach ($pagesSorted as $page) if ($page['url']!='index' && $page['menuStatus']=='Y' && $page['parent']=='menuone') {
$pag = $page['url'];
?>
but problem is with sorting..
subval_sort($pagesArray,'menuOrder');
is not working with i18N navigation structure..
i'm use this methood navigation structure in front-end, this is not sorting pages from I18N structure.
only when i edit a page and click "save" in front end foreach is sorting with a good order:
example:
in I18N navigation structure i have:
+ home page
+ menuone
L about us
L contact
L gallery
+ seccond menu
in front end is ok. but when i change a I18N structure to example
+ home page
+ menuone
L gallery
L about us
L contact
+ seccond menu
then in front-end is still old sorted... nothing change
there is any way to sort with foreach in front-end pages with I18N plugin ?[/code]
user plugin: scroll to top