Loading...
 
Skip to main content

History: PluginPref

Preview of version: 8 (current)

Not to be confused with PluginPreference

Plugin Pref

Introduced in Tiki11

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

Parameters

Display content based on global preference settings
Introduced in Tiki 11.
Go to the source code
Preferences required: wikiplugin_pref

Parameters
(body of plugin) - Wiki text to display if conditions are met. The body may contain {ELSE}. Text after the marker will be displayed if not matching the conditions.
no parameters


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}

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