Display alternate content to page creator or contributor
Plugin 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: lindon
.
Page last modified on Saturday 06 March, 2010 04:59:38 UTC by lindon
.
Sidebar
Sidebar
To register
To have an account at this site, please register at Tikiwiki.org
, and then use that user name and password to log in here.
