Forums / Developer / Popup Page Layout

Popup Page Layout

Author Message

Pavan Kumar

Monday 26 November 2007 4:02:21 am

Hi,
While opening a Popup window, the popup shows up with the default site access templates (when opening in website takes website template override and takes admin override template while in admin context).

Can some body help us in creating custome templates for popup's.
Is it possible to create overrides specific to website view and admin view (cms view)

Help appreciated.. Thanks in advance

Paul Leclercq

Tuesday 27 November 2007 8:17:05 am

Hello Pavan,

You have a number of ways of overriding the pagelayout.

You can either override the layout.ini file.

Just place a layout.ini.append.php file the settings folder of your siteaccess:

- /settings/siteaccess/your_site/layout.ini.append.php
- /settings/siteaccess/your_admin_site/layout.ini.append.php

You can also do this by using the override.ini file:
http://ez.no/doc/ez_publish/technical_manual/3_9/reference/template_override_conditions

----------------------------------------
If you are using an extension:
----------------------------------------
You can specify the url of your pagelayout by using the url.
$Result['pagelayout'] = "/my_folder/pagelayout.tpl";
$Result['content'] = "/my_folder/pagelayout.tpl";

if you are going to use a blank pagelayout you can specify
$Result['pagelayout'] = false;

and the given pagelayout will simply return the content of your page.