![]() |
|
Random sort order - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Random sort order (/thread-3857.html) |
Random sort order - Bilder-Freak - 2008-10-01 Hi, is it possible to do a random sort order for search-pages? Or can i switch the sort order in some way when the page is loaded - like sometimes ordered descending and sometimes ascending? Maybe you know a way how to do this? Random sort order - Bilder-Freak - 2008-10-14 does nobody know how to do this? maybe you have a hint or something? Random sort order - breglis - 2010-01-16 I am looking for the same thing.. This option is still missing from the selection in the backend as a sortorder choice.. It would then require to add 'ORDER BY RAND()' to the SQL used to retrieve the albums/images. I really suggest that to be added in later versions.. However my alternative idea is to shuffle the object array before display. $shuffled_subalbum = twodshuffle($_zp_current_album->getSubalbums()); works fine, but what I would need help with now is how to 'overwrite' the original Can someone help with that ? something like : $_zp_current_album['subalbums'] = $shuffled_subalbum ??? Thanks again / breglis Random sort order - sbillard - 2010-01-16 There would really be no way to "order by hand" the results of a search since these results do not exist except as the result of the search. It would be possible to do two things:
But, there is a method for making featrue suggestions. Please read the forum posting rules. |