You can actually change the default template list view (or maybe any other template) by doing something really simply. For example, we can use the Dataface_List_View_summary.html file (it's in the Dataface/templates folder) to replace our normal view of the list. To do this, go to the actions.ini file (can be the application one or a delegate class one) and enter this code:
[list > list]
template=Dataface_List_View_summary.html
The code list > list just says inherit everything from the list action and then add this new code and call it the action list. We are just like overwriting the default list action.
And some we point our template attribute to the template file we want and volia!
No comments:
Post a Comment