MTEntryProtect
A container tag for entry protection. If an entry has been protected, the contents of this container will be hidden and the protection prompt (e.g. a form to enter the password or a link to login via Typekey/OpenID) will be displayed.
On your Individual Entry Archives add the opening
MTEntryProtecttag just after you openingbodytag and close it just before closing thebody tag<body> <MTEntryProtect> ... </MTEntryProtect> </body>In all other templates, this container should wrap the contents of your
MTEntriescontainer such that only the protection prompt is displayed if the entry is protected.<MTEntries> <MTEntryProtect> ... </MTEntryProtect> </MTEntries>
The MTEntryProtect container tag takes the following optional attributes:
password_text- When an entry is password protected, a message that explains its protected status along with a form is displayed. This attribute allows you to customize the message displayed. Default:This post is password protected. To view it please enter your password belowtk_signin_text- When an entry is Typekey protected, a message is displayed asking users to login. This attribute allows you to customize the message. Default:This entry has been Typekey protected so only selected Typekey users can read it.tk_barred_text- This attribute allows you to customize the message that is displayed after a user has signed in on a Typekey protected entry but doesn't not have the permissions to view the contents of the entry. Default:You do not have the rights to access this entry. Sorry!oi_signin_text- When an entry is OpenID protected, a message is displayed asking users to login. This attribute allows you to customize the message. Default:This entry has been OpenID protected so only selected OpenID users can read it.oi_barred_text- This attribute allows you to customize the message that is displayed after a user has signed in on a OpenID protected entry but doesn't not have the permissions to view the contents of the entry. Default:You do not have the rights to access this entry. Sorry!
These attributes can be combined in an arbitrary way
<MTEntryProtect password_text="Entry Password Protected" tk_signin_text="Sign in with TK" tk_barred_text="Sorry, not allowed" oi_signin_text="OpenID Protected" oi_barred_text="You are not allowed to read this">
...
</MTEntryProtect>
