Template module
Posted: Fri Oct 30, 2009 9:25 am
Hello
I've made a module and inserted it in my page with {modulename}. I've added some routes;
$this->RegisterRoute('/modulename\/(?P[a-zA-Z0-9-]+)$/',
array('action'=>'default'));
which works as I want.
I've added my module on a page with 'Template2', which is not my default template. My default template is 'Template1'. When I go the the main frontend page of my module, it works great. But when I click a link, I get the page I want too, but not 'Template2', but 'Template1', the default.
Is there a way I can force my module to use 'Template2' instead of 'Template1'?
Thanks!
I've made a module and inserted it in my page with {modulename}. I've added some routes;
$this->RegisterRoute('/modulename\/(?P[a-zA-Z0-9-]+)$/',
array('action'=>'default'));
which works as I want.
I've added my module on a page with 'Template2', which is not my default template. My default template is 'Template1'. When I go the the main frontend page of my module, it works great. But when I click a link, I get the page I want too, but not 'Template2', but 'Template1', the default.
Is there a way I can force my module to use 'Template2' instead of 'Template1'?
Thanks!