Frames and zope page templates
Can you use frames or iframes in zope page templates? I tried doing something like this but it does spit out anything and I can't find anything useful through google. <frameset row="50%, 50%"> <frame name="A" src="PassForm"> <!-- PassForm is another page template --> </frameset> Do I have to use dtml? Thanks.
Dne čtvrtek, 23. září 2004 19:41 Laura McCord napsal(a):
Can you use frames or iframes in zope page templates?
I tried doing something like this but it does spit out anything and I can't find anything useful through google.
<frameset row="50%, 50%"> <frame name="A" src="PassForm"> <!-- PassForm is another page template --> </frameset>
Do I have to use dtml?
No, it is 2 independent objects. First object is page tith frameset. Second is PassForm object. -- Jaroslav Lukesh ------------------------------------------------------------- This e-mail could not contain any viruses because I use Linux
Dne čtvrtek, 23. září 2004 20:08 Jaroslav Lukesh napsal(a):
Dne čtvrtek, 23. září 2004 19:41 Laura McCord napsal(a):
<frameset row="50%, 50%"> <frame name="A" src="PassForm"> <!-- PassForm is another page template --> </frameset>
Do I have to use dtml?
No, it is 2 independent objects. First object is page tith frameset. Second
I was want to say YES of course! Sorry, late evening...
is PassForm object.
-- Jaroslav Lukesh ------------------------------------------------------------- This e-mail could not contain any viruses because I use Linux
Can you use frames or iframes in zope page templates?
Here is some code that works for me to generate a title/navigation frame and content frame: <html> <head> <title tal:content="python:here.getSiteName()">SITE NAME GOES HERE</title> </head> <frameset tal:attributes="rows python:'%s,*'%(getattr(here, 'title.gif').height)" FRAMESPACING="0" FRAMEBORDER="0" BORDER="no"> <frame src="navigation_template_html" scrolling="no"> <frame src="firstView" name="content_frame"> </frameset> </html> The rows attribute of the frameset is set based on the size of the title graphic. The page Template "navigation_template_html" has navigation buttons that target the content_frame. The function "firstView" calls a different page template for different users based on permissions and preferences. --Sean
Hi Laura,
<frameset row="50%, 50%"> <frame name="A" src="PassForm"> <!-- PassForm is another page template --> </frameset> You are defining to rows on the frameset, but you only have a frame tag. You have to put a second one:
<frameset row="50%, 50%"> <frame name="A" src="PassForm"> <frame name="B" src="Frame2"> </frameset> Regards, Josef
participants (4)
-
Jaroslav Lukesh -
Josef Meile -
Laura McCord -
Sean Hastings