We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Custom template? | Forum

Marcus Nov 4 '19
Hi folks is the a way I can use apart from default custom templates my own. I mean I'd like to add one to master pages let's call it custom.html now I just set it from my pluging...

const TEMPLATE_CUSTOM= 'custom';


Ebenezer Obasi
Ebenezer Obasi Nov 28 '19
You can create a custom master page class with a custom template and extend it to OW_MasterPage. You can then use your custom master page in your plugin:

OW::getDocument()->setMasterPage( new PLUGINKEY_CLASS_MasterPage());