Page 1 of 1
Phoca Download Plugin Ordering Options
Posted: 07 Aug 2020, 10:24
by amienzero
hello everyone
i've been using phoca download plugin to display file list view on my website and i've just noticed the
ordering attribute. how do i use the ordering attribute? currently i use the download plugin like this :
Code: Select all
{phocadownload view=filelist|id=37|limit=5}
i wish to display this list with ordering decending. can anyone help? thanks.
Re: Phoca Download Plugin Ordering Options
Posted: 07 Aug 2020, 17:21
by Jan
Hi, just paste a parameter in this format:
ordering=1
Following numbers represent:
case 2:
$orderingOutput = 'ordering DESC'
case 3:
$orderingOutput = 'title ASC'
case 4:
$orderingOutput = 'title DESC'
case 5:
$orderingOutput = 'date ASC'
case 6:
$orderingOutput = 'date DESC'
case 7:
$orderingOutput = 'id ASC'
case 8:
$orderingOutput = 'id DESC'
case 9:
$orderingOutput = 'hits ASC'
case 10:
$orderingOutput = 'hits DESC'
case 11:
$orderingOutput = 'filename ASC'
case 12:
$orderingOutput = 'filename DESC'
case 15:
$orderingOutput = 'count ASC';
case 16:
$orderingOutput = 'count DESC';
case 13:
$orderingOutput = 'average ASC';
case 14:
$orderingOutput = 'average DESC';
case 1:
default:
$orderingOutput = 'ordering ASC'
Jan
Re: Phoca Download Plugin Ordering Options
Posted: 19 Apr 2021, 13:50
by AlainR
Thank you for this list. Could it also be in the doc (
https://www.phoca.cz/documents/51-phoca ... oad-plugin) ?
Re: Phoca Download Plugin Ordering Options
Posted: 21 Apr 2021, 13:10
by Jan
Hi, thank you for the info, I will update the documentation.
Jan