Phoca Download Plugin Ordering Options

Phoca Download - download manager
amienzero
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 30 Oct 2018, 03:20

Phoca Download Plugin Ordering Options

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Plugin Ordering Options

Post 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
If you find Phoca extensions useful, please support the project
AlainR
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 24 Jul 2018, 16:33

Re: Phoca Download Plugin Ordering Options

Post by AlainR »

Thank you for this list. Could it also be in the doc (https://www.phoca.cz/documents/51-phoca ... oad-plugin) ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Plugin Ordering Options

Post by Jan »

Hi, thank you for the info, I will update the documentation.

Jan
If you find Phoca extensions useful, please support the project
Post Reply