The sort controller is used for alternative list views that don't have convenient sorting by clicking on the column header. It respects the sortable fields.ini directive:
- Code: Select all
sortable=1
to decide which columns will be included.
The most common example is if you wanted to use the summary list view template for your list view instead of the standard one for a particular table. You could add the following to your tables/tabename/actions.ini file:
- Code: Select all
[list > list]
template=Dataface_List_View_summary.html
This template uses the sort_controller tag to handle sorting. Only those columns with sortable=1 will be included in the list of columns that can be sorted.
-Steve