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 » 07 Aug 2020, 10:24

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: 42872
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Plugin Ordering Options

Post by Jan » 07 Aug 2020, 17:21

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

Post Reply