Hello
Is it possible to do something like this (using a custom GET() function)?
`
if (GET('sort')) {
$sort = GET('sort');
setOption('gallery_sorttype', $sort, false);
}
`
The GET() function is getting the key from the URL, and the option is updating on page refresh - this I can see via `print_r(getOptionList());`, BUT the order of the images doesn't change. Do I need to do something else, like clear memory?
Comments
Btw, you don't need a custom get funtion, the variable $_GET['sort'] is available if you append something to the url like &sort=<yoursortorder>. (That's php basics btw).
`
if ($_GET['sort']) {
$sort = $_GET['sort'];
}
while (next_album(true, $sort)):
endwhile;
`