' ORDER BY '.$sort.' '.$dir.';';
$sort = 'RAND()'; $dir = ''; ... ' ORDER BY '.$sort.' ' . $dir . 'LIMIT 0, '.$wfLimit.';';
yeah, I already have the limit going on my test setup. I am working on the random part.
[!Wayfinder? &startId=`0` &limit=`5` &sortBy=`random`!]
@pixelchutes
I have completed the mods and the updated version is in the repository.
I added the parameter &limit for limiting the result set.
For the random part, I added the option of ’random’ to the sortBy parameter.
So if you want 5 random links you would use:
[!Wayfinder? &startId=`0` &limit=`5` &sortBy=`random`!]
Works great! Think of the new possibilities! Good job, Kyle.
Nice addition indeed guys. Great work (and so fast, too!).
This discussion is closed to further replies. Keep calm and carry on.