Forums / Setup & design / Working with frames

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