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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 21 2025 04:20:38
Script start
Timing: Jan 21 2025 04:20:38
Module start 'layout'
Timing: Jan 21 2025 04:20:38
Module start 'content'
Timing: Jan 21 2025 04:20:38
Module end 'content'
Timing: Jan 21 2025 04:20:38
Script end

Main resources:

Total runtime0.0218 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 588.9297151.1953
Module start 'layout' 0.00870.0038 740.125036.6328
Module start 'content' 0.01250.0077 776.757890.1250
Module end 'content' 0.02020.0015 866.882829.9922
Script end 0.0217  896.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.7326140.0002
Check MTime0.00104.6203140.0001
Mysql Total
Database connection0.00167.259010.0016
Mysqli_queries0.004721.657730.0016
Looping result0.00000.083210.0000
Template Total0.00114.910.0011
Template load0.00083.845910.0008
Template processing0.00021.080010.0002
Override
Cache load0.00052.453610.0005
General
dbfile0.00031.485380.0000
String conversion0.00000.049340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs