Theming login/register pages

Permalink
Hi guys and gals,

I have been playing with C5 for a little while now and have some basic themes made and a little understanding of the process. I have no experience with PHP at all and was hoping for some help with customising the login page and registration page.

I have managed to change the concrete\config\theme_paths.php to show my custom theme wrapper around the login content however it seems to drop all of the nav-bar styles (they appear as a unstyled list).

Any help on what I'm missing here would be greatly appreciated as I'm sure other faults will pop up in time with whatever step I am missing.

Richard.

 
ryan replied on at Permalink Reply
ryan
So you're on the right track, but as a "good practice" rule you leave anything in the "/concrete' folder as is.

In your config/site_theme_paths.php file you can apply the theme by path (just like you did in the other file) but it won't get wiped out on your next upgrade.

The appearance of the login & register pages (or any other "single page" are determined by the view.php file in your theme. Most view.php files are just the bare layout wrapper, but you can easily change around the html in there to match the default.php in your theme.
mojoburns replied on at Permalink Reply
mojoburns
Same problem, this seems to work ok for a couple of my single pages but not all of them, not sure why?
mobius2000 replied on at Permalink Reply
One little nifty trick I found (I'm not taking credit) is to add a few lines of code which grabs a block from your scrapbook.

Create a autonav (for example) in scrapbook, name the block "autonav" (example) and to have that block automatically appear on your login page, add the following code to your singlepage (login.php):

<?php
$block = Block::getByName('autonav');  
if( $block && $block->bID ) $block->display();
else{ 
$area['Autonav'] = new Area('Autonav');
$area['Autonav']->display($c);
}?>


Second line searches for a block in your scrapbook called "autonav", the rest is in the event there is no block there in which case it creates an editable region.

I'm not sure if this directly helps your problem but if you are having trouble getting content to spawn across all single pages, this is a nifty trick.
mojoburns replied on at Permalink Reply
mojoburns
Thanks, handy to know and this will fix another issue I've had!

Unfortunately though it is the theme itself that doesn't seem to want to stick to the login, page not found, page forbidden etc pages. I think they are all system pages...any hints

cheers and thanks
Mnkras replied on at Permalink Reply
Mnkras
put it in the view.php file for your theme
mojoburns replied on at Permalink Reply
mojoburns
Trued that... Still not sticking to system pages?