Forums / Developer / Prevent extension from returning pagelayout.tpl

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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/