Move home to end of autonav menu

Permalink
Hi, I'm needing to make home (index.php) the last list item in my auto nav menu. I don't want to give the menu container a width (so it can grow infinitely) and the list items are floating to the right so that my menu aligns right. Because it seems that the homepage has to always be first in the menu, it appears visually last in my menu because everything is floating to the right.

Is it possible to do this in C5? Alternatively I can make my "homepage" a new page beneath the actual homepage and setup a redirect or I could give my menu container a fixed width and float the list items to the left and position the container exactly where it needs to be to make it look like it is aligning to the right. However, neither of those approaches are ideal.

Any ideas? Thanks.

 
12345j replied on at Permalink Reply
12345j
there are built in options in the auto nav block to display in reverse order.
TNTdesign replied on at Permalink Reply
Thanks. Are you referring to the 'reverse sitemap order' option? If so, I tried that initially but home is always the first in the menu, even if you reverse it. All of the other pages reverse their order but home always remains first.
Mnkras replied on at Permalink Reply
Mnkras
you would probbably have to make a custom template for the autonav which reverses the array
12345j replied on at Permalink Reply
12345j
or go into the css files and setting it to text-align:right. that might work for a simpler solution
TNTdesign replied on at Permalink Reply
Thanks for the help everyone. I tried reversing the array. I'm not that great with PHP but looked up reverse_array and attempted to apply it to the only array in view.php (I applied it to my template). It either produced an error or the order of the list items remained the same. I also looked into the controller and tried reversing arrays there as well but it only gave me errors.

Here's what I tried:
$selectedPathCIDs=array( $inspectC->getCollectionID() );
$reverseArray = array_reverse(array_reverse($selectedPathCIDs));


I then changed every reference of $selectedPathCIDs to $reverseArray

This produced no results.

I also tried:
$selectedPathCIDs=array( $inspectC->getCollectionID() );
$reverseArray = $reverseArray = array_reverse(array_reverse($selectedPathCIDs));


And:
$selectedPathCIDs = array_reverse(array_reverse($inspectC->getCollectionID()));


These just gave me errors. Could someone point me in the right direction here. Thanks!