Fullscreen
[Show/Hide Right Column]

Display alternate content to page creator or contributor
Print
English British

Mod author

This wikiplugin mod allows different content to be displayed depending on whether the user visiting the page is the creator of the page, a contributor or other user. (See Mods User for how to install a mod.)


Usage

Use the following syntax:
{AUTHOR(contributor=y|n)}some text{ELSE}other text{AUTHOR}

Parameter Accepted values Effect Since
contributor y or n (default: n) If set to y, only a contributor to the page will see the content (or the content before {ELSE}), if n, only the creator.


A couple of tips on usage:

  • The use of {ELSE} is optional
  • Contributors cannot be specified if the history for the page has been deleted

Example

With this code,
{AUTHOR(contributor=y)}''This note is for contributors to this page.''{ELSE} ''This note is for users who have not yet contributed to this page.'' {AUTHOR}


Contributors would see: This note is for contributors to this page.

Other visitors would see: This note is for users who have not yet contributed to this page.


Contributors to this page: lindon5653 points  .
Page last modified on Friday 19 March, 2010 22:53:16 UTC by lindon5653 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki