Loading...
 
Skip to main content
Display content based on global preference settings
Not to be confused with PluginPreference

Plugin Pref

Introduced in Tiki11

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

Parameters

Tiki Doc From Code error: pref not found

Examples

Basic syntax

Copy to clipboard
{PREF(preference_name="value" preference_name="value")}If all met, display this!{ELSE}Other content.{PREF}

Language preference

Copy to clipboard
{PREF(language="fr")}Salut ! {ELSE}Hello!{PREF}

Show PHP error messages