Page 1 of 1

Module: FEU Uploads Sortorder not working for custom fields

Posted: Mon Sep 10, 2018 1:07 pm
by blackrain
I would like to order my files by a field definition and have followed the instructions on the module help document.

i.e.

Code: Select all

{Uploads category='Area' sortorder=field:section}
unfortunately this throws an error and so I altered the code to

Code: Select all

{Uploads category='Area' sortorder='field:section'}
This just doesn't work either but the page renders but not in order required

any thoughts are welcome

thanks

Mark

Re: Module: FEU Uploads Sortorder not working for custom fie

Posted: Mon Sep 10, 2018 1:51 pm
by PinkElephant
blackrain wrote:

Code: Select all

{Uploads category='Area' sortorder='field:section'}
This just doesn't work either but the page renders but not in order required
It works as expected, here:

Code: Select all

{cms_module module="Uploads" category="test-category" sortorder='field:test-field-definition-02'}
and

Code: Select all

{cms_module module="Uploads" category="test-category" sortorder='field:desc:test-field-definition-02'}
... acting on the value of the test-field-definition-02 dropdown (alphanumeric text).

The Help says it'll only work on a Summary view. If that applies look closely at the section values (e.g. print_r) for whitespace, etc).