DW_extranet_Groups

Version: -  

Summary

Returns a comma separated list of group IDs of the groups which the current user belongs to.

Settings

The value is based on the groups in the Member of field in the user's settings.
(Users > User > Groups tab)

Remarks

This requires that the user is logged on through the extranet module.

Examples

Outputting the template tag

@GetObject("DW_extranet_Groups")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("DW_extranet_Groups"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("DW_extranet_Groups"); }

Outputting the template tag

<!--@DW_extranet_Groups-->

Check if object has a value

<!--@If Defined(@DW_extranet_Groups)--> Let's output this tag here: <strong><!--@DW_extranet_Groups--></strong> <!--@EndIf(@DW_extranet_Groups)-->