Plugin Group

Use this wiki plugin to display content based on the user's groups or friends. It is similar to PluginPerm.

Parameters

Display content based on the user's groups or friends
Introduced in Tiki 1.
Go to the source code
Preferences required: wikiplugin_group

Parameters Accepted Values Description Default Since
(body of plugin) Wiki text to display if conditions are met. The body may contain {ELSE}. Text after the marker will be displayed to users not matching the conditions.
groups groupname
separator: |
Select one or more groups allowed to view the block. 1
notpending groupname
separator: |
Select one or more groups. Users will be allowed to view the block if their membership in all of the selected groups is not pending. 13.0
pending groupname
separator: |
Select one or more groups. Users will be allowed to view the block if their membership payment to join the groups is outstanding. 13.0
friends username
separator: |
Select one or more users. Friends of these selected users will be allowed to view the block. 4.0
users username
separator: |
Select one or more users allowed to view the block. 27
notgroups groupname
separator: |
Select one or more groups not allowed to view the block. 1

Notes on usage

  • The {ELSE} part is optional.
  • The groups and notgroups parameters may be used at the same time.
  • Groups can be included in other groups, and this can impact how this plugin behaves. For example, if you want a section to be seen by the group A and the group Admins ( groups="Admins|A" ), and not by group B ( notgroups="B" ), be careful not to include group B in the Admins group . If Admins includes A and B, Admins will not see the section.

Examples

Basic syntax

Copy to clipboard
{GROUP(groups="Registered|Admins" notgroups="Editors")}show this content for users included/excluded from groups specified in the parameters{ELSE}otherwise show this content{GROUP}

Security

Use of this plugin to hide sensitive information will not prevent it from being revealed to users with permissions to view or edit the page source. Users that have a Watch on the wiki page will receive an email with the entire wiki page source, thus revealing the information regardless whether the content would be hidden because of this plugin.