I’d like to setup a secure zone where a page’s content is only available after a user logs in with an on-page login form.
I’ve set up a secure zone (lets call it SECUREZONE1) and set a landing page within its settings (LANDINGPAGE).
I’ve also setup a page (LOGINPAGE) with a secure zone login form. Ive added this form in the CMS by simply adding Components > Secure Zone > Login Form to the Page. This appears to be a general secure zone login form without any statement that its for logging into SECUREZONE1 specifically)
If I use LOGINPAGE to log in, it doesn’t land me on the LANDINGPAGE url set in the SECUREZONE1 settings. It just remains showing the login form with the url *?login=success. I can then manually navigate to the secured LANDINGPAGE and the content is available.
Alternatively If I navigate to the LANDINGPAGE whilst not logged in there is no form to log in and it says unauthorised on the page. If i add a form to this page it does not show on page.
Q: Is there a way to make the login form specific to SECUREZONE1 instead of being general. I suspect if I can, the system will pick up the Landing page setting and land the user there.
Or am I just missing something else here re secure zones? Struggling to find anything in the the Treepl Docs or Forum.