Editable areas on login page
Permalink
I have a login page using a custom theme for a client. They would like to be able to change a message on the login page periodically. Through the dashboard and showing system pages they can update login (or page forbidden) and as long as the user goes to /login, then the editable area content shows. If the user goes to /super-secret-page/ and are presented with the login form, it seems the controller has the context of super-secret-page and none of the editable area data for the login page is displayed.
Is there a way to allow the end user to update editable areas on the login page, and have that content displayed no matter how the end user ends up viewing the page?
Thanks
Is there a way to allow the end user to update editable areas on the login page, and have that content displayed no matter how the end user ends up viewing the page?
Thanks
Hmm, that's a creative solution and I may end up going that route if I can't track down a proper fix at the moment. Thanks!
The "page forbidden" page really confuses things because you see what looks like the login page but it's actually not the login page -- it's the page_forbidden page which pulls in a login form and displays it there. So what you want to do is add the same content to both the /login and the /page_forbidden pages. (Use the dashboard sitemap and check the "show system pages" box to see both of those pages -- visit them and edit just like any other page).
BTW, I'm assuming you modified your theme's view.php file to have an editable area in it (because I'm not sure how else you could have added content to the login page) -- so you'll need to go to config/site_theme_paths.php and add '/page_forbidden' as an item that uses your theme.
BTW, I'm assuming you modified your theme's view.php file to have an editable area in it (because I'm not sure how else you could have added content to the login page) -- so you'll need to go to config/site_theme_paths.php and add '/page_forbidden' as an item that uses your theme.
Thanks for the input. I actually have a login.php in the template folder already which does have a couple of editable areas. And the site_theme_paths.php has both set to use the custom template. There is currently content entered through the UI on both /login and /page-not-found, but if you directly access /super-secret-page (which should use the page-not-found page if I'm understanding things correctly) none of the entered content is displayed.
Also, if you dump out current collection $c on the login/page-not-found template it is instantiated with the super-secret-page's data which seems a little odd to me.
Also, if you dump out current collection $c on the login/page-not-found template it is instantiated with the super-secret-page's data which seems a little odd to me.
So, say you embedded content from a scrapbook or something, that might work.
...Not an ideal solution so I'm curious to see what people say about this one.