I have a site that has a private client area. Members will be created manually by the admin, and users will have no access to the CMS.
I need a login form to appear in my template in the header of every page. I can use $LoginForm which works pretty good, except I'd like to redirect the login of only that special $LoginForm.
I looked up the page on overriding the login form in the documentation and saw I can use Object::useCustomClass(), except to my understanding it overrides all the login forms including the one at domain.com/admin/
Is it possible to just have that one specific login form in the header handle a different redirect?
Don't think this is possible, but:
I have a page setup like so
- client area
----- client 1
---------- client 1 page 1
---------- client 1 page 2
----- client 2
---------- client 2 page 1
---------- client 2 page 2
etc etc
Is it possible to redirect the user after login to their specific parent page? I'd like to do this without hard coding in the values for ease of future use. Clients will be added all the time.