Skip Navigation

[Résolu] Controlling access to the archive page

This support ticket is created Il y a 6 années et 5 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Auteur
Publications
#576562
PlayerRegistrationArchivePage_loggedIn_access.png
PlayerRegistration_public_access.png

Tell us what you are trying to do?
I have a page where player can register. This is available on the main menu and accessible to everyone.
I have used the archive page to create a list of players registered.
I only want the committee , coaches, managers to see the list of registered players.
At the moment I have used nav-menu plugin to ensure it is only visible to logged in users.
I am trying to secure the archive page (access ?) so that not only do yob have to be logged in but you need to be one of the designated roles.

Questions:
Can access control access to the archive page to roles?
I have already build the archive page.
Should I use views instead?
Open to suggestions.

Is there any documentation that you are following?
Toolset guides

Is there a similar example that we can see?

What is the link to your site?
hidden link
hidden link

#576748

Minesh
Supporter

Languages: Anglais (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I need to know how you setup your archive page.

Basically - you can restrict the content inside the page using the access shortcode: [toolset_access]

For example:

[toolset_access role="rolename1,rolename2" operator="allow"]

this content will be visible to only rolename1 and rolename2

[/toolset_access]

Where:
- You should add your original rolename.

More info:
=> https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/

#577587

I resolved the issue using your advice.
1. enabled toolset access on pages.
2. Created a new role (committee) with the same access as subscriber
3. Limited the menu access to the page to the new role (committee) using the nav_menu plugin.
4. In toolset post forms edited the filter and the archive page to include

[toolset_access role="committee" operator="allow"]
 page content
[/toolset_access]
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.