sort_controller tag

A place for users and developers of the Xataface to discuss and receive support.

sort_controller tag

Postby dha » Tue Oct 26, 2010 5:50 pm

Hi Steve,

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

Thanks,
Don
dha
 
Posts: 5
Joined: Wed Oct 20, 2010 8:52 pm

Re: sort_controller tag

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: sort_controller tag

Postby dha » Wed Oct 27, 2010 4:35 pm

That would do it for me. I enjoy xataface so much . Thank you.
dha
 
Posts: 5
Joined: Wed Oct 20, 2010 8:52 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 13 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved