|
|
|
News id
|
40
|
Headline
|
Changing preferences in the conf.ini file
|
Content
|
The conf.ini file there is a section called [_pref] which you can use set different preferences through the application. For example, show_search = 0 will turn off search. How this works is that the various template files the application uses has special "Smarty" tags which have a line of code like this:<br /><br /><blockquote><br />{if $ENV.prefs.show_search}<br />// some code<br />{/if}<br /></blockquote><br /><br />This example was taken from the Dataface_Main_Template.html file. The $ENV.pref.show_search line basically checks the conf.ini file to see if the preference show_search has been set to 0. If it hasn't, then it will show search. <br /><br />Another example is in the Dataface_List_View_summary.html file (which is an alternative template to list view of a table) there is a line of code:<br /><br /><blockquote><br />{if !$ENV.prefs.SummaryList_hideSort}<br /></blockquote><br /><br />Notice however, that there is a ! symbol. So in order to actually turn it off, the preference must be SummarList_hideSort = 1. <br /><br />This idea can be extended across all templates.
|
Image
|
(Empty)
|
Date posted
|
Wed Jun 4 01:17: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-preferences-in-confini-file.html
|
|
|