This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I'm writing my first October theme. It's going to actually be a multi-site install (using the multisite plugin) and each site url will run a different theme. The thing is, most of the themes will be based on the initial one I am making but not edited by me but by other people.
I want to separate all the php logic from my theme out of the core pages and partials to avoid complexity. Especially as they will likely edit the files outside of the October environment I don't want to hand them these htm files with this hybrid mix of php code and html. I want to ideally hand them a few folders of files that are as pure html as possible with all the php logic separate in other files I don't need to give them.
Does anyone have a good strategy as to how I could achieve this? Ie maybe hook some kind of functions file that I can "include" into all the pages ?
Create an accompanying plugin, with a component. Associate that component to your layouts or you can force it in by Cms\Classes\Controller::extend
on the CMS controller.
Last updated
Hi daftspunk. Thanks for the reply. I've read over the documentation some more and a few of your videos and understand now that this does indeed seem to be possible only via plugins.
Last updated
1-3 of 3