Page 1 of 1

set a template with RegisterRoute?

Posted: Fri Dec 10, 2010 12:53 pm
by irish
I have set up a registerroute on a module:

Code: Select all

$this->RegisterRoute('/[rR]etail\/cid\/(?P<idContact>[^[:space:]]+)\/(?P<returnid>[0-9]+)$/',
		array('action'=>'prefform','showtemplate='=>'Retail'));
How do I set a template for that specific page? I tried this but it doesn't work:

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