Article access level with {mprestriction ids="x"}

More
7 years 11 months ago #80545 by jr
I want to restrict a section of an article such that only subscribers may view it. I plan to insert {mprestriction ids="x"} . . . {/mprestriction} around the restricted section.

Within Joomla's article editor, must I set Access = Registered for the article?

If so, will public (non-subscriber) users still be able to view the unrestricted parts of the article?

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #80579 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Article access level with {mprestriction ids="x"}
No, you can just set Access of the article to Public so public users can see the unrestricted parts of the article

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #80596 by jr
Thanks for your quick response, Tuan.

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #80684 by jr
FYI, I submitted a pull request in GitHub for adding a clarification in your documentation about the access level.

I just wanna check with you: I'm happy to submit doc changes when such answers arise. Is that something you want, or would you rather I didn't?

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #80715 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Article access level with {mprestriction ids="x"}
That would be great. Thanks for willing to help me with the doc changes

Regards,

Tuan

Please Log in or Create an account to join the conversation.