Autonav inside template not sorting the "home" item
Permalink
I've put an autonav inside a template and it works just fine.
But when i try to sort the menu-tree by site order like:
"home about products order"
I get:
(asc)
"about products order home"
(desc)
"order products about home"
"home" just won't be sorted? it's locked at the last position and I want it at the first position.
The "home" node is the top node, all other pages is below it.
Question: What am I missing?
But when i try to sort the menu-tree by site order like:
"home about products order"
I get:
(asc)
"about products order home"
(desc)
"order products about home"
"home" just won't be sorted? it's locked at the last position and I want it at the first position.
The "home" node is the top node, all other pages is below it.
$autonav = BlockType::getByHandle('autonav'); // get the autonav block $autonav->controller->orderBy = 'display_asc'; // display nav in ascending order $autonav->controller->displayPages = 'top'; // display only the top level pages $autonav->render('templates/header_menu'); // use the header nav custom template (included with concrete5)
Question: What am I missing?
Have you tried rearranging them in the dashboard first?
Yes just tried that and "home" still sits at the last position. and I can't sort the "home"-node can I?
I found the problem.. the "ul" "li" was set to float: right... my bad.. sorry to have troubled you =)