I am using tpl_basic_list template to show my listings and I
use ‘shuffle’ code to shuffle the listings.
In admin I have ordering based on rank system (ascending) using
a select-simple field with 1 and 2 as options. I would like to shuffle the
items but maintain the ranking order so that rank 1 always above 2 but still
It appears that any order that SEBLOD creates in the $items list has been overwritten by the shuffle function. You would need to write your own shuffle function, or you can contact Octopoos if you need assistance with that.
I managed to solve this with a little help from a friend see
code below. The reason why I needed this
feature is so that I can place paid listings in my directory in order according
to ranking (how much client paid for listing) while still shuffling the
listings so that there is no preference who comes top from their respective
rank . I have three types of listing Premium, Enhanced and Free and Premium
always needs to be above Enhanced which needs to be above Free.
This is for tpl_basic_list template by jasongallagher. I created a rank field using select simple
with 3 options 1 – Premium, 2 – Enhanced, 3 – Free. Then placed the rank field in the ordering tab
(Ascending) and in the list tab in the backend. Then the following code in