Loading...
 
Skip to main content

History: PluginPref

Source of version: 6

Copy to clipboard
            ^ Not to be confused with ((PluginPreference)) ^

! Plugin Preference
''Introduced in ((Tiki11))''

Use this ((wiki plugin)) to display content based on global preference settings.

!! Parameters
There are no pre-defined parameters. Any global preference (or multiple preferences) can be used as a parameter (as found in the Control Panel settings). If the value of the parameter (or multiple parameters) matches the actual preference setting for the site, then the content prior to the -+{ELSE}+- tag will be shown, otherwise the part after. 

!! Examples

!!! Basic syntax
{CODE(colors="tiki")}
{PREF(preference_name="value" preference_name="value")}If all met, display this!{ELSE}Other content.{PREF}
{CODE}

!!! Language preference
{CODE(colors="tiki")}{PREF(language="fr")}Salut ! {ELSE}Hello!{PREF}{CODE}

!! Related pages
* ((PluginUserPref))
* ((PluginPerm))
        

History

Information Version
Marc Laporte 8
Baraka Kinywa 7
Marc Laporte 6
lindon 5
lindon 4
lindon 3
Marc Laporte 2
luciash d' being 🧙 1