Page 1 of 1

Template module

Posted: Fri Oct 30, 2009 9:25 am
by Rafael
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!

Re: Template module

Posted: Fri Oct 30, 2009 10:08 am
by Peciura
Post link to your site.

New page with "Template2" and content in it

Code: Select all

{fetch file='http://....page_with_wrong_content...&showtemplate=false'}
might just fit your bill.