Private Module
nav_first.pngFirst: thread:131
HTML Block
Edited: 11 Oct 2012 12:06 by: James Kanjo
Comments: 0
Tags:
nav_prev.pngPrevious: thread:136
Ten Core Principles
Edited: 12 Nov 2009 12:27 by: pieterh
Comments: 0
Tags:
Last: thread:112
Image Module
Edited: 12 Nov 2009 12:22 by: pieterh
Comments: 0
Tags:
nav_last.png
Next: thread:122
Consistent link grammar
Edited: 12 Nov 2009 12:27 by: pieterh
Comments: 0
Tags:
nav_next.png

Steven HeynderickxSteven Heynderickx wrote on 10 Nov 2009 15:46

Originally suggested by pieterhpieterh on 24 September 2009.

This is a design sketch for a new module that shows/hides text depending on the current user level.

The syntax for the module would be:

[[module Private level="wikidot|member|mod|admin" password="secret" button="label"]]
...
[[else]]
This block appears because you lack the necessary privileges.
[[/else]]
[[/module]]

If button="label" is not provided, no button appears and the private content is shown by default (or the 'else' block is shown)

The original thread for this design sketch was wishlist:63 on the community site.


Start a new sub-thread

We discourage direct comments on this thread: to discuss it, please start a sub-thread.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License