Description of the need
It would be nice to have a visibility condition that would allow us to determine when we are one one of the three login pages: user/login
, user/register
, and user/password
.
This would enable us to use a special layout only on these pages, or add blocks to another layout that should either be only shown, or only hidden on these pages (especially useful when the blocks are intended for logged-in-eyes only).
If https://github.com/backdrop/backdrop-issues/issues/4410 gets merged, I would also like to recommend that add this condition automatically to any block placed onto the default administrative layout, in an effort to help keep people safe. It would be easy to accidentally leak private information to the public if you did not realize the default admin layout would be used on login-pages when you enabled that setting.
Proposed solution
- Create another visibility condition for Layouts
- Assign the visibility condition automatically to any block placed onto the default administrative layout
Recent comments
Sorry, but I have not had the chance to try the vhost fix yet. I'll post back after I do.
Question re RewriteBase and running in a sub-directory
The official guidance for that would be to put the preprocessing in template.php within your_theme_preprocess_node() and put the logic there to add to or change the variables, but you can do in...
Display modes and templating
Perfect. So if I work with the .tpl files for e.g. all nodes of type “books”, I can easily do something like this via PHP (nobody needs twig anyway): If field 'user' = ‘yorkshirepudding’, then...
Display modes and templating