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
can this be added as an advanced feature?
Mike
hmm thats an interesting way to do but how about the register page? there is no register block
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.
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.
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
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.
What would you change VIEW_CORE_THEME to?
Can you give an example by using DEFAULT or Green Salad?
Can you give an example by using DEFAULT or Green Salad?
Sorry I'm a noob. How do i go about changing the site_theme_paths.php to accomodate my theme?
Sorry I'm a noob. How do i go about changing the site_theme_paths.php to accomodate my theme?
in that files, you see this
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
/*
$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
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.