Skip Navigation

[Resolved] Redirect user without permission to a specific page

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to redirect Users to a specific Page if they do not have permission to view the requested content.

Solution: Access doesn't redirect to a specific Page, but can display a different template instead. If your site uses Toolset Layouts, you can create a Layout specifically for this. If your site does not use Toolset Layouts, you can use a Content Template instead. Then set up the restrictions in Toolset > Access Controls.

Relevant Documentation:
https://toolset.com/documentation/user-guides/access/

This support ticket is created 6 years ago. 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#1169631

Tell us what you are trying to do?
I want to redirect guest to a specific page with memberhsip plan table where they can select wich buy

Is there any documentation that you are following?
I try to follow doc for "toolset access" but i can't find an easy way to create a page template and set it for redirection

Is there a similar example that we can see?

What is the link to your site?
- hidden link -> main home site
- hidden link -> Page accessible only for registered members (if you try to open it user should be redirect to other page with membership level)

Tnx a lot,
Max

#1169970
Screen Shot 2018-12-19 at 2.58.36 PM.png

Hi, instead of redirecting Users to a specific Page, Access redirects Users to a specific template - either a Template Layout or a Content Template. So you should add your Membership Plan Table to a new Template Layout or a new Content Template.

If your site uses Toolset Layouts, you must create a new Layout in Toolset > Layouts > Add new. Leave the Layout unassigned, then go to Toolset > Access > Post Types. Click to open the panel for your custom post type. Choose "Manage with Access". Uncheck the Read checkbox for the User role you want to restrict. Then click the pencil icon next to the checkbox to select your Layout. (see pic)

If your site does not use Toolset Layouts, you must create a new Content Template in Toolset > Content Templates > Add new. Leave the Content Template unassigned, then go to Toolset > Access > Post Type > Your custom post type. Choose "Manage with Access". Uncheck the Read checkbox for the User role you want to restrict. Then click the pencil icon next to the checkbox to select your Content Template. (see pic)

#1171938

I think with you solution i can fix the problem.
I not have time to try at the moment (i still waiting my costumer to confirm the quotation).

When is ok, i try all the solutions and tell you if is really ok.

Tnx a lot for the moment,