Loading...
 
Skip to main content

Features / Usability


PluginList can't sort by Description

Is there any way to sort the results of LIST pluginQuestion by the "Description" field? On the Search IndexQuestion page it says description is not sortable, but I'm hoping there is another way.

I'm using this plugin to create lists of wiki pages and files from the gallery for my users. We use an identifyer in the description field for all wiki pages and files and being able to sort by this field is important.

The format of the data is AAA-AAA-NNN; where A is alphs and N is number; ex: ABC-DEF-001.

I was using LISTPAGES plugin, which allowed me to sort by description, but now I need to list Files as well as Wiki pages, and LISTPAGES won't work for files.

Here is an example of the code I'm using:

Copy to clipboard
{LIST()} {list max="50"} {filter deepcategories="8"} {sort mode="description_asc"} {OUTPUT(template="table")} {column sort ="description" label="DocNumber" field="description" mode=raw} {column sort="title" label="Title" field="title_link" mode=raw} {column sort="modification_date" label="Last Modified" field="modification_date" mode=raw} {column sort="object_type" label="Object Type" field="object_type" mode=raw} {OUTPUT} {FORMAT(name="title_link")}{display name=title format=objectlink}{FORMAT} {FORMAT(name="modification_date")}{display name=modification_date format=date}{FORMAT} {LIST}


This code gives me the list I want, but sorting by description does nothing. Other fields work fine.