Skip Navigation

[Resolved] Redirect user to login page with Toolset Access

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

Problem:

I am trying to redirect not logged in users to Woocommerce Login Page /my-account/my-account-settings/ when they try to publish to paid content in my site.

I got stucked at the moment of assigning the new Content Template 'Redirect non logged in Users' to the User Role 'guest' inside the group 'Logged-in users only'. Content Template is not listed, actually only Layouts are displayed.

Solution:

Yes, it is expected result, when you are using both Layouts + Views plugins, Layouts will take over that options, in your case you can create a layout, and display Content Template 'Redirect non logged in Users' as a cell:

https://toolset.com/documentation/user-guides/content-template-cell/

Then you can assign this layout in option "Show Template Layout". see our document:

https://toolset.com/documentation/user-guides/limiting-read-access-specific-content/

Relevant Documentation:

This support ticket is created 6 years, 1 month 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1150429
2018-11-21_01-00-55.png

Hi,

I am trying to redirect not logged in users to Woocommerce Login Page /my-account/my-account-settings/ when they try to publish to paid content in my site.

I tried with the following tutorial https://toolset.com/forums/topic/redirect-user-to-login-page-with-toolset-access/
I got stucked at the moment of assigning the new Content Template 'Redirect non logged in Users' to the User Role 'guest' inside the group 'Logged-in users only'. Content Template is not listed, actually only Layouts are displayed.

Has this procedure changed? Any idea how to achieve the same with Toolset Access.

#1150449

Hello,

Yes, it is expected result, when you are using both Layouts + Views plugins, Layouts will take over that options, in your case you can create a layout, and display Content Template 'Redirect non logged in Users' as a cell:
https://toolset.com/documentation/user-guides/content-template-cell/

Then you can assign this layout in option "Show Template Layout". see our document:
https://toolset.com/documentation/user-guides/limiting-read-access-specific-content/

#1151109

My issue is resolved now. Thank you!

#1151681

you are welcome