Hello everyone! I'm comletely new to working with Zope and web sites in general. I hope my questions don't seem too stupid. I've written a navigation method something like this: <ul> <dtml-in expr="objectValues('Folder')"> <li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li> </dtml-in> </ul> It works fine but whenever the default views of the folder contents are called they are displayed in the very same frame. What I wanna do is the following: If there are folders in one folder, I want them to be listed in one frame. And whenever the index_html method is called (wjich seems to happen automatically) I want its contents to appear in a different frame. Can I call a method in DTML and assign a target frame? like: <dtml-var index_html> target=frame ... ???? I'd be very thankful for any help! Thank you very much!!! Mareike
<snip>
If there are folders in one folder, I want them to be listed in one frame. And whenever the index_html method is called (wjich seems to happen automatically) I want its contents to appear in a different frame.
Can I call a method in DTML and assign a target frame?
like: <dtml-var index_html> target=frame ... ????
I'd be very thankful for any help! Thank you very much!!!
This is an html problem not a zope problem. You need to set up your frame structure and then call a dtml method to display data within the frame(s). For Example: create a dtml method called index_html containing the following html: <iframe name="displaywindow1" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0" height="250" width="100%" align="center" src="<dtml-var dtmlmethod1>"> </iframe> <iframe name="displaywindow" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0" height="250" width="100%" align="center" frameborder="0" height="250" width="100%" align="center" src="<dtml-var dtmlmethod2>"> </iframe> This creates two separate frames and runs a different dtml method in each one. For more info on frames have a look at: http://www.w3schools.com/default.asp HTH Jonathan
Mareike wrote:
I'm comletely new to working with Zope and web sites in general. I hope my questions don't seem too stupid.
I've written a navigation method something like this:
<ul> <dtml-in expr="objectValues('Folder')"> <li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li> </dtml-in> </ul>
It works fine but whenever the default views of the folder contents are called they are displayed in the very same frame.
What I wanna do is the following:
If there are folders in one folder, I want them to be listed in one frame. And whenever the index_html method is called (wjich seems to happen automatically) I want its contents to appear in a different frame.
Can I call a method in DTML and assign a target frame?
like: <dtml-var index_html> target=frame ... ????
I'd be very thankful for any help! Thank you very much!!!
Targets, as I recall, can only be used to open new URLs in a different frame, so you must work it such that the URL in the target frame shows the desired results. This is the same procedure, btw, as making the next page (when not using frames) display the desired results. (I have not used frames since they were first introduced and I was playing with them, but I'm pretty sure this is accurate.) --jcc -- "He who fights with monsters should look to it that he himself does not become a monster. And when you gaze long into an abyss the abyss also gazes into you."
participants (3)
-
J Cameron Cooper -
Mareike -
Small Business Services