Forums / Developer / Template override, match criterias

Template override, match criterias

Author Message

Heiko Irrgang

Wednesday 29 December 2010 2:40:38 am

Hi,

i want to override the main template only for a certain view of a certain module.

The override in general works, if i add no Match criteria to the override.ini, it works, but of course for the whole page, which i don't want.

What i want to have is, that the override only takes place under the url http://mysite/mymodule/myview/some/params

I tried some of the reference docs template overrides, like Match[navigation_part_identifier] or Match[url_alias], but i didn't get it to work.

Are these parameters documented somewhere (...as in: more than the ref doc's 'they exist')?

How could i achieve this?

Greetings,

Heiko

Carlos Revillo

Wednesday 29 December 2010 6:24:52 am

Hi.

I suppose you have a script called myview.php for your "myview"? Then in that script you can just use

$Result['pagelayout'] = 'yourpagelayout.tpl';

Heiko Irrgang

Wednesday 29 December 2010 7:09:42 am

Thank you very much, exactly what i needed.