Using frames

Author Message

Julien Plesniak

Friday 20 July 2007 7:48:09 am

Hello,

I want to use frames in a template of my administration.

I use this code to insert a frame file:

<FRAME SRC="design/admin_c/templates/resultat_rech_candidature.tpl" NAME="resultatrech">

But it doesn't work. How to do this?

Thanks

Jeroen de Jong

Wednesday 25 July 2007 6:40:47 am

Hi Julien,

That wont work.

1 Make an override for design/admin_c/templates/resultat_rech_candidature.tpl
2 Match with a node
3 Use the url to this node as SRC

<FRAME SRC={"node" | ezurl} NAME="resultatrech">

Hope that helps.

Jeroen

André R.

Wednesday 25 July 2007 7:33:24 am

Why use frames when you have a template system ?

Frames where used in the late 90's because it was the only way to separate design from content. In eZ Publish you have a page layout, template system and override system to do this for you in a much more fine gained, clean and post 2000 manner.

EDIT: and if you want to have zones that are not updated all the time, you will be better off using ajax.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Julien Plesniak

Thursday 26 July 2007 11:18:45 pm

Hello,
thanks for help. Finally, i used ajax on my search form.

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

Main resources:

Total runtime0.7916 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.0076 592.9297152.6094
Module start 'layout' 0.00760.0039 745.539139.3984
Module start 'content' 0.01150.7788 784.9375575.7188
Module end 'content' 0.79030.0013 1,360.656312.2031
Script end 0.7915  1,372.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5086160.0003
Check MTime0.00170.2126160.0001
Mysql Total
Database connection0.00080.102310.0008
Mysqli_queries0.734092.7261620.0118
Looping result0.00070.0873600.0000
Template Total0.745594.220.3728
Template load0.00320.407720.0016
Template processing0.742393.773820.3711
Template load and register function0.00020.019710.0002
states
state_id_array0.00140.180510.0014
state_identifier_array0.00150.194320.0008
Override
Cache load0.00280.3535260.0001
Sytem overhead
Fetch class attribute can translate value0.00050.064730.0002
Fetch class attribute name0.00150.193250.0003
XML
Image XML parsing0.00090.112730.0003
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00110.1449170.0001
String conversion0.00000.001340.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs