Overriding pagelayout.tpl using node number as override key?

Author Message

Trond Åge Kvalø

Wednesday 04 February 2004 5:54:46 am

Hi there!

We have created a class consisting of a textline and a textfield. Then we created a node using that class where the textfield is an XML structure. When viewing that node we only want to show the XML structure without any HTML markup.

Since pagelayout.tpl contains the main layout, we wanted to create an override for pagelayout.tpl, but unlike the other overrides the admin interface does not offer the override keys for the pagelayout.tpl.

So how can we define an override for pagelayout.tpl using node number as override key?

Best regards
Trond Kvalo
Senior developer
Atlantia as
Norway

trondåge

Paul Borgermans

Wednesday 04 February 2004 6:22:45 am

You will have to edit the override.ini.appned.(php) directly, not all possibilities are foreseen in the admin interface.

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

James Packham

Wednesday 04 February 2004 6:22:48 am

Hi Trond! I trust you're keeping well?

You could try using a modified version of a printer friendly page as described here:

http://www.ez.no/ez_publish/documentation/customization/custom_design/printable_pages

These templates can be customised to make pagelayout look however you want. You can access by modfiying your url, for example:

http://www.ez.no/layout/set/print/community/forum/setup_design/overriding_pagelayout_tpl_using_node_number_as_override_key

Of course you could make it look however you want :) The only problem is how you link to it, but as you know more about the structure of your site than I, I'll leave that to you :)

Regards,

~James~

James Packham

Wednesday 04 February 2004 6:24:17 am

But then again, Paul's solution is probably better ;)

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 18 2025 22:21:04
Script start
Timing: Jan 18 2025 22:21:04
Module start 'layout'
Timing: Jan 18 2025 22:21:04
Module start 'content'
Timing: Jan 18 2025 22:21:05
Module end 'content'
Timing: Jan 18 2025 22:21:05
Script end

Main resources:

Total runtime0.8193 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.2891152.6563
Module start 'layout' 0.00640.0031 741.945339.5078
Module start 'content' 0.00940.8085 781.4531588.0234
Module end 'content' 0.81800.0013 1,369.476612.0938
Script end 0.8192  1,381.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4703160.0002
Check MTime0.00150.1816160.0001
Mysql Total
Database connection0.00110.131910.0011
Mysqli_queries0.746491.1000620.0120
Looping result0.00060.0740600.0000
Template Total0.780195.220.3900
Template load0.00270.327820.0013
Template processing0.777494.888120.3887
Template load and register function0.00020.022810.0002
states
state_id_array0.00090.105910.0009
state_identifier_array0.00070.089620.0004
Override
Cache load0.00220.2728300.0001
Sytem overhead
Fetch class attribute can translate value0.00060.070930.0002
Fetch class attribute name0.00100.116960.0002
XML
Image XML parsing0.00110.140030.0004
class_abstraction
Instantiating content class attribute0.00000.001670.0000
General
dbfile0.00730.8917230.0003
String conversion0.00000.001040.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs