Working with frames

Author Message

Daniel Guerrier

Wednesday 23 March 2005 7:57:56 pm

This may be a dumb question.
I am using frames in my interface and I want to know how to call a template in a framset url.

<frameset rows="150,*" framespacing="1" border="1">
<frame src="UntitledFrame-15.htm">
<frame src="UntitledFrame-16.htm">
</frameset>

If this is my frameset, how do I convert the urls to allow the top and bottom to load different dynamic data and or templates. I understand the code but the file and directory setup is a bit confusing.

I like this product, but it seems like you are making it hard to do easy things.

Ben Peter

Wednesday 23 March 2005 9:04:42 pm

Hi Daniel,

rest assured that eZ publish has a rather flat learning curve, given the functionality and flexibility it has. I have worked with other CMSs and eZ publish is such a relief :-)

WIth your frameset, you can take the following approach:

In settings/<siteaccess>/layout.ini, define a layout for each frame:

[topframe]
PageLayout=pagelayout_top.tpl

[bottomframe]
PageLayout=pagelayout_bottom.tpl

In the page containing the frameset, you can then use

<frame src="{concat('layout/set/topframe/', $node.url_alias)|ezurl}" />

That will use pagelayout_top.tpl for that frame instead of pagelayout.tpl

Cheers,
Ben

Daniel Guerrier

Thursday 24 March 2005 9:10:34 am

So I assume I am placing the framset in pagelayout.tpl and will have the frames call the other custom layouts?

Ben Peter

Thursday 24 March 2005 1:17:58 pm

That at least is how I would approach it. Maybe there are other ways.

Cheers,
Ben

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 00:14:56
Script start
Timing: Jan 19 2025 00:14:56
Module start 'layout'
Timing: Jan 19 2025 00:14:56
Module start 'content'
Timing: Jan 19 2025 00:14:56
Module end 'content'
Timing: Jan 19 2025 00:14:56
Script end

Main resources:

Total runtime0.6440 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0108 587.9063152.6250
Module start 'layout' 0.01080.0030 740.531339.4297
Module start 'content' 0.01380.6287 779.9609516.6172
Module end 'content' 0.64240.0015 1,296.578112.1875
Script end 0.6440  1,308.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.6543160.0003
Check MTime0.00150.2406160.0001
Mysql Total
Database connection0.00570.879510.0057
Mysqli_queries0.583690.6275600.0097
Looping result0.00060.1003580.0000
Template Total0.605494.020.3027
Template load0.00280.441920.0014
Template processing0.602593.560020.3013
Template load and register function0.00020.027910.0002
states
state_id_array0.00210.323610.0021
state_identifier_array0.00110.177020.0006
Override
Cache load0.00250.3871300.0001
Sytem overhead
Fetch class attribute can translate value0.00090.140520.0005
Fetch class attribute name0.00130.198750.0003
XML
Image XML parsing0.00240.370320.0012
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00320.5013160.0002
String conversion0.00000.001440.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
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs