Loading...
 
 Error
  • Elasticsearch flush error: Validation Failed: 1: id is too long, must be no longer than 512 bytes but was: 722;2: id is too long, must be no longer than 512 bytes but was: 969;
 Error
  • The search index could not be updated. The site is misconfigured. Contact an administrator.
    Validation Failed: 1: id is too long, must be no longer than 512 bytes but was: 722;2: id is too long, must be no longer than 512 bytes but was: 969;
Features / Usability

Features / Usability


PluginList can't sort by Description

posts: 72 United States

Is there any way to sort the results of LIST plugin by the "Description" field? On the Search Index 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:

{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.