Can't override login page from inside theme
Permalink
I created a custom login page inside my root single_pages directory, but because I don't want the site's default header from view.php, I also placed a version of login.php inside my theme directory.
This works fine if you go to /login.php.
But if you go to a forbidden page, only the override inside the root single_pages directory is appearing.
Thoughts?
This works fine if you go to /login.php.
But if you go to a forbidden page, only the override inside the root single_pages directory is appearing.
Thoughts?
I think if you copy the /concrete/controllers/page_forbidden.php into /controllers/page_forbidden.php and grab the view function from concrete/core/controllers/single_pages/page_forbidden.php and change to it should show your correct page.
Great idea, but nope.
Even if I put the redirect right in the core Concrete 5 directory, I still get the login page from my root single page directory, not the one in the theme.
Curses.
Even if I put the redirect right in the core Concrete 5 directory, I still get the login page from my root single page directory, not the one in the theme.
Curses.
I never did find a way to override the login using s single page from within a theme.
Instead, I just used Javascript to hide the elements of the theme view.php that I didn't want to show.
Instead, I just used Javascript to hide the elements of the theme view.php that I didn't want to show.