Change Order of Data : Pages Titles plugin


#1

Hello,

I have disabled some columns for displaying in the Pages Titles widget (only the titles and the hits are remaining), but datas are still ordered by “unique visitors numbers” (wich isn’t diplayed).

How could I do to get this widget ordered by hits number ?

Thank you for your help


(Matthieu Aubry) #2

How did you disable these columns?

In the Controller.php you can do


$view->setSortedColumn( 'nb_visits', 'desc' );


#3

Thank you very much, it works !

I have disabled columns by using

$view->setColumnsToDisplay( array('label','nb_hits') );