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
Marcus Nov 4
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';


OW::getDocument()->getMasterPage()->setTemplate(OW::getThemeManager()->getMasterPageTemplate(OW_MasterPage::TEMPLATE_CUSTOM));

Ebenezer Obasi
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());