Don't use main Layout in my popup window???

Author Message

Phi Hoang

Friday 21 November 2003 12:21:38 am

Basically, I created a plain site like TSCM example. After that I would like to popup new window containing images but I don't want the main layout appear in this new window (ie. disappear header and footer). How can I dow do that? Thanks in Advance.

Bård Farstad

Friday 21 November 2003 12:42:41 am

You can use the layout module for this. If you prepend your URL with e.g. /layout/set/print you will get the print layout for your site. This is configured as default with eZ publish so if you just link to an object in your site like this: http://example.com/layout/set/print/content/view/full/42
( where 42 is your node ) you will not get the header and footer you normally have.

--bård

Documentation: http://ez.no/doc

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 19 2025 03:26:32
Script start
Timing: Jan 19 2025 03:26:32
Module start 'layout'
Timing: Jan 19 2025 03:26:32
Module start 'content'
Timing: Jan 19 2025 03:26:33
Module end 'content'
Timing: Jan 19 2025 03:26:33
Script end

Main resources:

Total runtime0.8014 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.2891152.6406
Module start 'layout' 0.00490.0028 741.929739.4766
Module start 'content' 0.00770.7923 781.4063520.7109
Module end 'content' 0.80000.0014 1,302.11728.1250
Script end 0.8014  1,310.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3988160.0002
Check MTime0.00140.1751160.0001
Mysql Total
Database connection0.00060.070410.0006
Mysqli_queries0.758894.6747540.0141
Looping result0.00060.0738520.0000
Template Total0.772696.420.3863
Template load0.00230.290520.0012
Template processing0.770396.115120.3851
Template load and register function0.00030.037210.0003
states
state_id_array0.00070.093410.0007
state_identifier_array0.00100.125720.0005
Override
Cache load0.00190.240890.0002
Sytem overhead
Fetch class attribute can translate value0.00100.122420.0005
Fetch class attribute name0.00170.213630.0006
XML
Image XML parsing0.00100.119220.0005
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00200.2457170.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs