Ordering of autonav not working in 5.4.2.2?

Permalink
Hi,

I'm trying to display the autonav links in reverse sitemap order, but none of the ordering options in the autonav dialog box work. Nor does hardcoding the ordering like so work:
$bt_main->controller->orderBy = 'display_desc';


I'm using Concrete5 version 5.4.2.2.

Help!

Pascal

plindelauf
 
Sadu replied on at Permalink Reply
Sadu
I have the same problem.

I needed a quick fix, so I added the following to concrete/blocks/autonav/controller.php

Insert the following in a new line after line 635...

if($this->orderBy == "display_desc") { $this->navArray = array_reverse($this->navArray); }


This isn't a particularly clean way of resolving this, but hopefully the devs come up with a more elegant fix :)