Fullscreen
[Show/Hide Right Column]

Close
noteNote
This page is to document "what Tiki should do". For feature documentation (what Tiki does), please see corresponding page on doc site

Adding a preference to an admin panel

You simply need to use the preference smarty plugin in one of the administration panel templates (templates/admin/include_*.tpl).

Sample inclusion
{preference name=example_my_pref_name}

How to hide options with dependencies


Just add id="feature_xyz_childcontainer" where feature_xyz is the name of the parent features. So if parent feature is off...

For a radio field use id="fgal_use_db_childcontainer_1" for the first radio button, id="fgal_use_db_childcontainer_2" for the second radio button ...

<div class="adminoptionboxchild" id="feature_multilingual_childcontainer">
This text will just appear if feature_multilingual is activated
</div>


To have a longer preference name in search results, yet a shorter one visible in the template:

{preference name=some_name label="{tr}Shorter Name{/tr}"}

Preference always visible

{preference name=feature_wiki visible="always"}


This can be useful to avoid the basic/advanced tags (filters) on certain admin panels

Templates

The templates to modify the look & feel of the preferences:
http://tikiwiki.svn.sourceforge.net/viewvc/tikiwiki/trunk/templates/prefs/


Page last modified on Wednesday 24 August, 2011 07:08:04 UTC

Search Wishes (subject only) [toggle]

Categorize Adding a preference to an admin panel

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.