Forums / Developer / Prevent extension from returning pagelayout.tpl

Prevent extension from returning pagelayout.tpl

Author Message

Eirik Alfstad Johansen

Monday 29 August 2005 9:46:29 am

Hi,

It seems that, regardless of the code in a module extension, the pagelayout template is sent to the browser. Can I prevent this, so that I can output HTML solely from the extension itself?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Kristof Coomans

Monday 29 August 2005 10:43:10 pm

In a module view, you can do this:

$Result['pagelayout'] = false;

You can also specify another template to use as the pagelayout:

$Result['pagelayout'] = 'new_pagelayout.tpl'

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Eirik Alfstad Johansen

Tuesday 30 August 2005 3:17:21 am

Thanks a lot, Kristof! Worked like a charm.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/