Custom login page

Permalink
Hi all, I am hoping someone can shed some light how I go about editing core pages like login and account?

Previously this was done in App.php but this seems to be having no affect. I have moved the the login single page from concrete/single_pages/login.php to application/single_pages/ where I can edit the titles etc but not the wrapper like getting the themes element/header.php in there.

Any help would be greatly appreciated.

Richard.

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi mobius2000,

I am not positive, but I believe to have full control over customizing a single page like this requires adding the page to your theme path.

Applying Your Theme to Single Pages with "Theme Paths"
https://documentation.concrete5.org/developers/designing-for-concret...

Example:
application\config\app.php
'theme_paths' => array(
    '/login' => 'my_theme_handle'
)

Adding the above code to any existing array elements in app.php would point the login single page to a specific theme. This would display the login page using the theme's view.php page template (view.php displays theme single pages).

To have full control over the page, you would add a login.php page template to the theme. Once login.php was added, it would display the login page instead of view.php.
surefyre replied on at Permalink Reply
surefyre
I need to change the elements on the login page as well as just theme it (which I've done by manually editing the app setting in the config dir though I'd much prefer to set this in the package installer).

I thought you could copy the login.php page elsewhere, into the package structure) and it would override the core version with whatever changes I put in the copy.

Alas no, what's the preferred method?
hutman replied on at Permalink Reply
hutman
Take a look at this post, I believe it has your answers -https://www.concrete5.org/community/forums/customizing_c5/overriding...
MrKDilkington replied on at Permalink Reply
MrKDilkington
@surefyre

Here is an example of making changes to login page components:
https://www.concrete5.org/community/forums/customizing_c5/modifying-...
surefyre replied on at Permalink Reply
surefyre
This doesn't seem to work from a package, though. Can it be done ?