History: PluginPreference
Source of version: 6 (current)
Copy to clipboard
^ Not to be confused with ((PluginPref)) ^ ! Plugin Preference Using this wiki plugin, introduced in ((Tiki21)), allows you to build your own administration panels. It is a way to delegate permission to set only certain preferences to non-administrators. So we could create limited admin panels with just what people need, without giving -+tiki_p_admin+- permission by only specifying which [All-Preferences|preferences] will be included in the wiki page. !! Parameters {pluginmanager plugin="preference"} !! Examples !!! Basic syntax {CODE(wrap="1" colors="tiki")} {preference name="feature_webdav" currentpage="My-Wiki-Page"} {CODE} Once the page is saved, the preference appears there as it would appear in the control panel, so it can be modified. {img src="display1675" link="display1675" width="400" rel="box[g]" imalign="left" alt="Plugin Preference basic syntax" desc="Click to expand" align="center" styleimage="border"} !!! Some preferences Similarly for a single preference, you can add several preferences, this time separated by commas, as shown in the settings table. {CODE(wrap="1" colors="tiki")} {preference name="feature_webdav,fgal_elfinder_feature,feature_docs,fgal_pdfjs_feature,h5p_save_content_frequency" currentpage="My-Wiki-Page"} {CODE} The above code in a Wiki page will give: {img src="display1674" link="display1674" width="400" rel="box[g]" imalign="left" alt="Plugin Preference some preferences" desc="Click to expand" align="center" styleimage="border"} !! Security !!! Users This plugin is not displayed to anonymous users. For other users, those in the __Registered__ group for example, if they have permission to edit the wiki page on which the plugin is embedded, they can change the plugin's parameter values and must wait for admin approval. After changing the values of the -+name+- parameter and registering the wiki page (here named ''My admin panel'') by a non-administrator, he will see this: {img src="display1676" link="display1676" width="400" rel="box[g]" imalign="left" alt="Plugin Preference validation" desc="Click to expand" align="center" styleimage="border"} !!! Wiki page When the plugin loads, it makes sure that the current page matches the current wiki page's parameter value, which prevents someone from using an approved plugin on another page with different permissions. !! Aliases * (alias(Plugin Preference))