sort_controller tag

Archived from the Xataface Users forum.

dha — Tue Oct 26, 2010 5:50 pm

Hi Steve,

Do you have an example of how the sort_controller is used?

Thanks,
Don


shannah — Wed Oct 27, 2010 10:09 am

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


dha — Wed Oct 27, 2010 4:35 pm

That would do it for me. I enjoy xataface so much . Thank you.