Page 1 of 1

sort_controller tag

PostPosted: Tue Oct 26, 2010 5:50 pm
by dha
Hi Steve,

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

Thanks,
Don

Re: sort_controller tag

PostPosted: Wed Oct 27, 2010 10:09 am
by shannah
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

Re: sort_controller tag

PostPosted: Wed Oct 27, 2010 4:35 pm
by dha
That would do it for me. I enjoy xataface so much . Thank you.