our-member-include
our-member-include and our-member-exclude go on any element. They show or hide the element and its children depending on the member groups of the member logged in to the website. Give them a comma-separated list of member group names.
<div our-member-include="Staff">Only members of the Staff member group see this.</div><div our-member-include="Staff,Admins">Only members of Staff OR Admins see this.</div><div our-member-include="*">Only logged-in members see this.</div><div our-member-include="?">Only visitors who aren't logged in see this.</div>
<div our-member-exclude="Staff">Everyone except Staff members sees this (including visitors who aren't logged in).</div><div our-member-exclude="?">Everyone except visitors who aren't logged in sees this.</div><div our-member-exclude="*">Everyone except logged-in members sees this.</div>Special groups
Section titled “Special groups”| Value | Means |
|---|---|
* |
Any logged-in member. |
? |
Anyone who isn’t logged in. |
Good to know
Section titled “Good to know”our-member-includeshows the element when the member is in any of the groups.our-member-excludehides the element when the member is in any of the groups.- On one element, exclude is checked first.
- For Umbraco backoffice users rather than members, use
our-user-include.