Loading...
 
Skip to main content

History: PluginGroup

Preview of version: 29

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.

History

Advanced
Information Version
Marc Laporte 31
Marc Laporte 30
Bernard Sfez / Tiki Specialist Adding a link to the PluginGroupList 29
Marc Laporte AutoTOC 28
Xavier de Pedro 27
Xavier de Pedro 26
Xavier de Pedro 25
lindon 24
lindon 23
lindon 22
lindon 21
Marc Laporte 20
Daniel Gauthier typo 19
sylvie 18
Torsten Fabricius just some minor corrections 17
briank Rewrite for clarity 15
briank Edit for clarity and typos. 14
lindon 13
Marc Laporte 12
Marc Laporte 11
Scot Wilcoxon description 10
lindon 9
lindon 8
mlpvolt 6
mlpvolt 5
sylvie 4
sylvie 3
sylvie 2
system created from structure 1