2 afwas Feb 09, 2009 15:16Hi Matthew, In /inc/widgets/widgets/_coll_post_list.widget.php around line 70 (just before 'disp_order') place: 'orderby' => array( 'label' => T_( 'Order by' ), 'note' => T_( 'Put something funny here.' ), 'type' => 'select', 'options' => array( 'datestart' => T_( 'Date' ), 'title' => T_( 'Title' ) ), 'defaultvalue' => 'datestart' ), In the array 'disp_order' change this line to your liking: 'options' => array( 'DESC' => T_( 'Newest to oldest' ), 'ASC' => T_( 'Oldest to newest' ), 'RAND' => T_( 'Random selection' ) ), like 'Newest to oldest' becomes 'Descending' or something.. Next open /inc/widgets/model/_widgets.class.php and add line 465 so it becomes: else { // post list $ItemList->set_filters( array( 'orderby' => ( $this->disp_params[ 'orderby' ] ? $this->disp_params[ 'orderby' ] : 'datestart' ), // <-- Add this line 'order' => ( $this->disp_params[ 'disp_order' ] ? $this->disp_params[ 'disp_order' ] : 'DESC' ), 'unit' => 'posts', // We want to advertise all items (not just a page or a day) ) ); } (tested) Good luck
3 lxsparks Feb 11, 2009 22:02 Hi Afwas, Thank you! :D That worked a treat, I had been poking looking for it all happened but all to no avail. Thanks again! Matthew
Hi Matthew,
In /inc/widgets/widgets/_coll_post_list.widget.php around line 70 (just before 'disp_order') place:
In the array 'disp_order' change this line to your liking:
like 'Newest to oldest' becomes 'Descending' or something..
Next open /inc/widgets/model/_widgets.class.php and add line 465 so it becomes:
(tested)
Good luck