Hi Andre, Andre Meyer schrieb:
Dear Tino
I understand that this is very annoying to you (and me). I have been looking at the source in Mozilla from the start and the link tag has always been there. Either this is a very minimal mistake that I make and just do not see it or I am having a fundamental problem with Zope. If you are willing to look at my code it is attached. Please, have a look at zpt/index_html.zpt. It currently uses an embedded stylesheet, but the link tag is still there. Trying to place that tag to other places, removing the macro, etc. have not changed the situation.
You didnt tell us you are referring to a filesystem based product here! And you did not check the URL to your included resource :-) See http://www.zopelabs.com/cookbook/1002248204 You just use a File object instead of ImageFile. HTH Tino Wildenhain
Dear fellow Zopistas So, thew CSS problem is solved by means of http://www.zopelabs.com/cookbook/1002248204 and ImageFile, though this is a strange thing (.css is not .gif of course). But how can other file types than images be used in the same way? My plan is to have an index_html that refrences two frames (<frameset>). However, the names for the frame pages need to added with ImageFile in order to allow for them to be known in my index_html.zpt. Using ImageFile the ZPT tags are not processed and using PageTemplateFile raises an error when displaying the plage. Any ideas are welcome kind regards André ----- Original Message ----- From: "Tino Wildenhain" <tino@wildenhain.de> To: "Andre Meyer" <a.meyer@hccnet.nl>; <zope@zope.org> Sent: Monday, December 01, 2003 12:51 PM Subject: Re: [Zope] ZPT and CSS
Hi Andre,
Andre Meyer schrieb:
Dear Tino
I understand that this is very annoying to you (and me). I have been looking at the source in Mozilla from the start and the link tag has always been there. Either this is a very minimal mistake that I make and just do not see it or I am having a fundamental problem with Zope. If you are willing to look at my code it is attached. Please, have a look at zpt/index_html.zpt. It currently uses an embedded stylesheet, but the link tag is still there. Trying to place that tag to other places, removing the macro, etc. have not changed the situation.
You didnt tell us you are referring to a filesystem based product here! And you did not check the URL to your included resource :-)
See http://www.zopelabs.com/cookbook/1002248204
You just use a File object instead of ImageFile.
HTH Tino Wildenhain
Hi Andre, Andre Meyer schrieb:
Dear fellow Zopistas
So, thew CSS problem is solved by means of http://www.zopelabs.com/cookbook/1002248204 and ImageFile, though this is a strange thing (.css is not .gif of course). But how can other file types than images be used in the same way?
Investigation shows that there is only App.ImageFile. However the image-specific part of this is minimal (only __str__ method with a simple tag structure) So you can save use if for other files as well.
My plan is to have an index_html that refrences two frames (<frameset>). However, the names for the frame pages need to added with ImageFile in order to allow for them to be known in my index_html.zpt. Using ImageFile the ZPT tags are not processed and using PageTemplateFile raises an error when displaying the plage.
When its HTML it should fit in PageTemplateFile. I dont understand your issue I guess... Regards Tino Wildenhain
On Wed, 2003-12-03 at 02:59, Andre Meyer wrote:
My plan is to have an index_html that refrences two frames (<frameset>).
OK.
However, the names for the frame pages need to added with ImageFile in order to allow for them to be known in my index_html.zpt. Using ImageFile the ZPT tags are not processed
Yeah, don't do that.
and using PageTemplateFile raises an error when displaying the plage.
What error, specifically? The *type* of thing you're trying to do is basic... there's nothing special about frames from Zope's point of view. Something about how you're accessing your ImageFile is wrong... the error message is trying to tell you what it is. HTH, Dylan
participants (3)
-
Andre Meyer -
Dylan Reinhardt -
Tino Wildenhain