Main Nav display newest pages first

Permalink Browser Info Environment
Hi,

Id like to know how i would go about making it so that the main nav displayed the newest added pages first in the submenu

So when i add a page to a submenu it appears at the bottom and i wish for it to appear first and push the older pages to the bottom.

Type: Discussion
Status: New
Brentmarais
View Replies:
c5mix replied on at Permalink Reply
c5mix
In the theme's header.php file (located at packages/theme_slate/themes/slate/elements/header.php) change line 74 from this:
$bt->controller->orderBy = 'display_asc';

To this:
$bt->controller->orderBy = 'chrono_desc';


That will cause all pages in the nav to display in order of newest first.
Brentmarais replied on at Permalink Reply
Brentmarais
Hi,

Thank you very much for that. It worked.

Is there a way to make it so that this only applies to subpages and not the top nav?
c5mix replied on at Permalink Reply
c5mix
You're welcome!

No, you can only set it to apply to all pages

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.