Profile Single Page as Part of a Theme Package
Permalink
I have tried looking at how-tos and documenation, but I'm still a bit confused. I am trying to figure out exactly what I need to do to make it so that single pages - especially Profile - work well with the theme.
The view.php file only prints out what's there, but I need to do custom stuff to the various areas, such as the profile sidebar.
Step-by-step, what do I do to include single pages as part of the theme package?
The view.php file only prints out what's there, but I need to do custom stuff to the various areas, such as the profile sidebar.
Step-by-step, what do I do to include single pages as part of the theme package?
For example, you'd drop a login.php file into your theme if you want a theme styled login. Typically this page would be based on view.php, with the contents of the standard login.php inserted or included where the print $innertContent goes.
You would also need to follow the instructions in config/site_theme_paths.php to enable the use of those pages, otherwise the vanilla ones will continue to apply.
Having done that, you might want to have the page controller do something a little different. If so, then copy concrete/controllers/login.php into /controllers/login.php and make changes there. I've done just that on a site where confirming the site registration (which is done by login.php) subscribes the user to a mailchimp list.