set a template with RegisterRoute?
Posted: Fri Dec 10, 2010 12:53 pm
I have set up a registerroute on a module:
How do I set a template for that specific page? I tried this but it doesn't work:
I am talking here about the main templates found in admin Layout > Templates and not the templates that I created in the module.
System info:
CMS Version - 1.6.7
PHP: 5.2.14
Code: Select all
$this->RegisterRoute('/[rR]etail\/cid\/(?P<idContact>[^[:space:]]+)\/(?P<returnid>[0-9]+)$/',
array('action'=>'prefform','showtemplate='=>'Retail'));
Code: Select all
$this->RegisterRoute('/[rR]etail\/cid\/(?P<idContact>[^[:space:]]+)\/(?P<returnid>[0-9]+)$/',
array('action'=>'prefform','showtemplate='=>'Retail'));
I am talking here about the main templates found in admin Layout > Templates and not the templates that I created in the module.
System info:
CMS Version - 1.6.7
PHP: 5.2.14