|
|
|
News id
|
41
|
Headline
|
Changing the default template for list view
|
Content
|
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:<br /><br /><blockquote><br />[list > list]<br /> template=Dataface_List_View_summary.html<br /></blockquote><br /><br />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. <br /><br />And some we point our template attribute to the template file we want and volia!
|
Image
|
(Empty)
|
Date posted
|
Wed Jun 4 02:14:00 2008
|
Posted by
|
noreply@blogger.com (Fong Chun Chan)
|
Status
|
Approved
|
Categories
|
Blog
|
Source id
|
Fong's Blog
|
Source url
|
http://fongxataface.blogspot.com/2008/06/changing-default-template-for-list-view.html
|
|
|