Theme a Customized login.php File?
Permalink
I got part of the way there.
First I changed the site_theme_paths.php file like so:
That works as expected - the default login page had my theme applied. Good.
So then I created a copy of:
/concrete/single_pages/login.php
into:
/packages/brp/themes/brp_theme/login.php
Doing that gave me a place to customize the login.php file, but disconnected my theme and results in an un-styled page with no header or footer.
To properly override login.php and still use my theme, what do I need to do?
I tried:
which just put me back to the default login.php and style.
First I changed the site_theme_paths.php file like so:
$v = View::getInstance(); $v->setThemeByPath('/login', "brp_theme");
That works as expected - the default login page had my theme applied. Good.
So then I created a copy of:
/concrete/single_pages/login.php
into:
/packages/brp/themes/brp_theme/login.php
Doing that gave me a place to customize the login.php file, but disconnected my theme and results in an un-styled page with no header or footer.
To properly override login.php and still use my theme, what do I need to do?
I tried:
$v = View::getInstance(); $v->setThemeByPath('/login', "brp_theme");
which just put me back to the default login.php and style.
The single page you copied should instead go inside the root/single_pages directory. Take a look at this post. http://www.concrete5.org/documentation/how-tos/designers/themimg-sy...
That's what it took. Thanks!
concrete5 often makes me crazy trying to understand which files can be overriden from within the folder tree of a package a theme, or must go in the root tree. For the project I'm working on now, I have overrides in my theme, in my package and two more in the root tree!
Bob
concrete5 often makes me crazy trying to understand which files can be overriden from within the folder tree of a package a theme, or must go in the root tree. For the project I'm working on now, I have overrides in my theme, in my package and two more in the root tree!
Bob
Excellent! Glad you got it sorted!