Removing the C5 bar from the top of login screen

Permalink 1 user found helpful
Hi All,

Anyone any ideas?

I've had a look at a fair few places but can't seem to find a solution?

Thanks,

Oli

olsgreen
 
BigBobbyD replied on at Permalink Best Answer Reply
BigBobbyD
Hi Oli,

See:
http://www.concrete5.org/community/forums/usage/editing_system_file...

And:
http://www.concrete5.org/documentation/developers/pages/single-page...

Essentially you create a template for your system pages in your themes folder, and call it view.php.

You call the content from these system pages by putting this line into said view.php where you want the system content to appear:
<?php print $innerContent?>


Then add a line to config/site_theme_paths.php like this:
$v->setThemeByPath('/register', "yourThemeName");


If you want to modify the inner content of the register page (or any of the other system pages), copy them from concrete/single_pages to the top-level single_pages directory and then modify that.

You may already know this, but one of the great things about concrete is the ability to modify just about anything by using the top-level directories to modify stuff in core...

I hope this helps.
-Bob
olsgreen replied on at Permalink Reply
olsgreen
Thanks, spot on Bob!

I was already overriding the login single page and controller. Strange how even when you do that it doesn't remove the C5 nav bar and stays in the default theme?

Just for anyone else reading ... you can also add:

$v = View::getInstance();
$v->setThemeByPath('/login', "mytheme");


to your controllers on_start() method to accomplish the same as modifying your config/site_theme_paths.php.

Bob: Yeah C5 is proving to be an awesome multi-tool for me! :) My only qualm is why you can't override helpers?