Loading...
 
Skip to main content

History: Sortable Results

Source of version: 3 (current)

Copy to clipboard
            !{{page}}

As of ((Tiki14)), it is now possible to let the users sort lists of tracker items.

The feature relies on ((PluginList)) and ((Tracker Inline edit)).

The sort handle value formatter will display an icon allowing to drag the rows up and down. After a short delay, modified values will be stored in trackers.

The field used to store the ordering should be a numeric field dedicated to this purpose. It is expected that the field be used to sort the list in the list.

If the sorting is used by various partial listings inconsistent behavior is expected.

{CODE(caption=Sample)}
{LIST()}
  {filter field=tracker_id content=1}

  {sort mode=tracker_field_order_asc}

  {OUTPUT(template=table)}
    {column field=handle label="" mode=raw}
    {column field=tracker_field_fieldA label=A}
    {column field=tracker_field_fieldB label=B}
    {column field=tracker_field_fieldC label=C}
  {OUTPUT}
  {FORMAT(name=handle)}{display name=tracker_field_order format=sorthandle}{FORMAT}
{LIST}
{CODE}

!! Related
* ((PluginList sort control block))