Skip to content

our-member-include

Added in v0.3.0

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>
Value Means
* Any logged-in member.
? Anyone who isn’t logged in.
  • our-member-include shows the element when the member is in any of the groups.
  • our-member-exclude hides 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.