This tag is used to show or hide content based on the currently logged in member’s access rights to a particular page/post.
MemberMouse’s default content protection scheme is to hard-block pages that are protected. This means that if a non-member tries to view a protected page, they’ll be redirected to an error page.
Access Decision tags provide you with an opportunity to expose portions of protected content based on the visitor’s access rights. Within a single page, you could have teaser content for non-members and protected content for paying members. By using the MM_Access_Decision tag with different access types you can tailor the visitor’s experience on the page.
WICHTIGER HINWEIS: As soon as you use MM_Access_Decision access=’false’ or MM_Access_Decision access=’future’ on a page/post, you’re instructing MemberMouse to bypass the standard hard-block protection mechanism. This means that as soon as you use one of these tags, any content outside of a MM_Access_Decision access=” tag, will be visible to anyone who can access the page.
For example, when you use the MM_Access_Decision access=’false’ tag on a page, you’re instructing MemberMouse to allow everyone to access that page and that you’ll control what they can see by placing content within the appropriate MM_Access_Decision access=” tag.
Die Platzierung von Inhalten außerhalb des MM_Access_Decision access="-Tags gibt Ihnen die Möglichkeit, Inhalte einzufügen, die für alle sichtbar sein sollen, wobei Sie sie nur einmal eingeben müssen. Seien Sie sich jedoch bewusst, dass sie nicht geschützt sind und jeder sie sehen kann.
Attribute
id (optional) - Die ID der Seite/des Beitrags, auf deren Grundlage die Zugriffsentscheidung getroffen wird. Ist dies nicht festgelegt, wird die ID der aktuellen Seite/des aktuellen Beitrags verwendet.
Zugang - Gibt an, auf welche Art von Zugriffsstatus geprüft werden soll. Nachstehend finden Sie eine Liste der zulässigen Werte:
| Wert | Beschreibung |
wahr | Wenn das aktuelle Mitglied Zugriff auf die Seite/den Beitrag hat, wird der Inhalt dieses Tags angezeigt |
falsch | Wenn das aktuelle Mitglied keinen Zugriff auf die Seite/den Beitrag hat, wird der Inhalt dieses Tags angezeigt |
Zukunft | Wenn das aktuelle Mitglied derzeit keinen Zugriff auf die Seite/den Beitrag hat, dies aber in Zukunft der Fall sein wird, wird der Inhalt dieses Tags angezeigt |
Verwendung
Aktueller Zugang Beispiel
[MM_Access_Decision access='true']
Sie haben Zugriff auf diese Seite seit [MM_Content_Data name='dateAvailable']. Klicken Sie hier, um die Seite zu besuchen: <a href="/de/[MM_Content_Link]/">[MM_Content_Data name='title']</a>
[/MM_Access_Decision]
In this example, we’re creating an access decision for the current post/page. By setting ‘access’ to ‘true’ we’re indicating that this content should be seen by a visitor only if they currently have access to the current post/page. For example, if they currently have access they’ll see the text:
You’ve had access to this page since September 1, 2023. Click here to visit the page: Meine geschützte Seite
Kein Zugang Beispiel
[MM_Access_Decision access='false']
Sie haben keinen Zugang zu [MM_Content_Data name='title']. Klicken Sie hier, um Zugang zu erwerben: <a href="/de/[MM_Purchase_Link productId='1']/">Zugang erhalten</a>
[/MM_Access_Decision]
In this example, we’re creating an access decision for the current post/page. By setting ‘access’ to ‘false’ we’re indicating that this content should be seen by a visitor only if they don’t have access to the current post/page. For example, if they currently don’t have access they’ll see the text:
You don’t have access to My Protected Page. Click here to purchase access: Zugang erhalten
Beispiel für zukünftigen Zugang
[MM_Access_Decision access='future']
Sie haben noch keinen Zugriff auf [MM_Content_Data id='262' name='title']. Sie erhalten den Zugriff am [MM_Content_Data id='262' name='dateAvailable'].
[/MM_Access_Decision]
In this example, we’re creating an access decision for the post/page with ID 262. By setting ‘access’ to ‘future’ we’re indicating that this content should be seen by a visitor only if they will have access to the post/page with ID 262 sometime in the future. For example, if they don’t currently have access but will sometime in the future, they’ll see the text:
You don’t have access to My Protected Page yet. You will get access on March 20, 2024.

