Editing system files

Permalink
Hey in order for concrete to look even better i think you should be able to edit the not found page login, register, and the download file page.

can this be added as an advanced feature?

Mike

Mnkras
 
jereme replied on at Permalink Reply
jereme
You can already modify the themes of pages like the ones you stated by modifying config/site_theme_paths.php

If you need to make additional customizations, you can copy any of these pages out of concrete/single_pages into single_pages/ and start customizing to your hearts content. It may mean slight changes with each major concrete release, but it shouldn't be anything major.

I've done this on our company support site to provide a completely custom login page.
Mnkras replied on at Permalink Reply
Mnkras
hmm thats an interesting way to do but how about the register page? there is no register block
jereme replied on at Permalink Reply
jereme
I'm not talking about blocks, I'm talking about single pages.

see $BASEDIR/concrete/single_pages

If you copy $BASEDIR/concrete/single_pages/register.php to $BASEDIR/single_pages/register.php and start customizing your copy, you can diverge without hacking directly on concrete's core.
Mnkras replied on at Permalink Reply
Mnkras
i understand that but you can lets say stick a login block in the middle of a page. there is no register block but it would be nice
jereme replied on at Permalink Best Answer Reply
jereme
Concrete has a register single page built in. You can customize it by copying it out of concrete's single_pages directory out into the main single_pages directory and performing your edits. You can make it use your theme by editing config/site_theme_paths.php.
wayotte replied on at Permalink Reply
What would you change VIEW_CORE_THEME to?
Can you give an example by using DEFAULT or Green Salad?
pakigreenl replied on at Permalink Reply
pakigreenl
Sorry I'm a noob. How do i go about changing the site_theme_paths.php to accomodate my theme?
pakigreenl replied on at Permalink Reply
pakigreenl
Sorry I'm a noob. How do i go about changing the site_theme_paths.php to accomodate my theme?
Mnkras replied on at Permalink Reply
Mnkras
in that files, you see this

/*
$v = View::getInstance();
$v->setThemeByPath('/login', "yourtheme");
// $v->setThemeByPath('/403', "yourtheme");
// $v->setThemeByPath('/register', "yourtheme");
*/


you need to remove the /* and */ then the theme path is obvious, the two //comment it out so remove those if you want them, where it says yourtheme you put the handle which if its a theme, go to <root>/themes and the folder name of your theme is the handle, if its a package, <root>/packages/<packagename>/themes/ the folder name in the themes folder

Mike