CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Module: FEU Uploads Sortorder not working for custom fields
https://forum.cmsmadesimple.org/viewtopic.php?f=7&t=79036
Page 1 of 1

Author:  blackrain [ Mon Sep 10, 2018 1:07 pm ]
Post subject:  Module: FEU Uploads Sortorder not working for custom fields

I would like to order my files by a field definition and have followed the instructions on the module help document.

i.e.
Code:
{Uploads category='Area' sortorder=field:section}

unfortunately this throws an error and so I altered the code to
Code:
{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

Author:  PinkElephant [ Mon Sep 10, 2018 1:51 pm ]
Post subject:  Re: Module: FEU Uploads Sortorder not working for custom fie  Topic is solved

blackrain wrote:
Code:
{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:
{cms_module module="Uploads" category="test-category" sortorder='field:test-field-definition-02'}
and
Code:
{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).

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/