Template module

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Rafael
New Member
New Member
Posts: 4
Joined: Fri Jul 04, 2008 8:39 am

Template module

Post 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!
Peciura

Re: Template module

Post 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.
Post Reply

Return to “Developers Discussion”