Re: [Zope] FS based product and image replacement
- Dieter Maurer : > Nicholas Wieland wrote at 2005-8-12 11:45 +0200: > >The image is inside 'myproduct/images', what I've tried is to create > >an ImageFile and use it inside the background-image directive inside > >the stylesheet, but also url("images/foo.gif") with and without the > >absolute url. > > "ImageFile" works. You must do something wrong. > What happens precisely? > Exception+Traceback > -- broken image (then access it and report exception+traceback). Nothing, the image isn't displayed at all, so I argue that Zope doesn't find it. > Sometimes, images are put into the "misc_" section of a product. > You can see an example use in "Products/ZGadflyDA/__init__.py". Thank you. ngw -- checking for life_signs in -lKenny... no Oh my god, make (1) killed Kenny ! You, bastards ! nicholas_wieland-at-yahoo-dot-it ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FS based product and image replacement
Nicholas Wieland wrote at 2005-8-12 11:45 +0200: >The image is inside 'myproduct/images', what I've tried is to create an >ImageFile and use it inside the background-image directive inside the >stylesheet, but also url("images/foo.gif") with and without the absolute url. "ImageFile" works. You must do something wrong. What happens precisely? Exception+Traceback -- broken image (then access it and report exception+traceback). Sometimes, images are put into the "misc_" section of a product. You can see an example use in "Products/ZGadflyDA/__init__.py". >- >Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3Hi >*, >I'm trying to use image replacement in a FS product, but unfortunately >I'm not able to catch the image on the FS (a simple gif). Please post text/plain only messages -- if possible... -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FS based product and image replacement
Well I think for plain zope there is a skinned folder (or similar named) implementation to apply the same approach except no CMF overhead. I think you could find it on zope.org or google around for it. Regards, David On Friday, August 12, 2005, at 10:13 AM, Nicholas Wieland wrote: Sorry, but I don't and can't use CMF :) It's plain Zope. I'm not interested in "skins", this is an internal app, so I just have to provide a usable UI. Thanks for trying. ngw David Pratt <[EMAIL PROTECTED]> ha scritto: Hi Nicholas. You want to put your images, templates, script pythons etc that you want to be available in a skin folder for your product. Then you make skin folder a DirectoryView as part of your product development and install so that the DirectoryView is installed with portal skins. Once you have a successful install, you can verify that your skin folder in the appropriate skin paths you want by using the Properties tab in portal skins tool. Your images, templates and scripts - whatever you have included in the skin are now available globally to your application. All you have to do is reference the image or object by its id to get a handle on it. As far as images, when you use an image in a zpt, you can look at the source and the full url is made. Here is a link to a product that illustrates how to do this for ExampleFileSystemSkin product : http://sourceforge.net/project/ showfiles.php?group_id=55262&package_id=99640 With stylesheets, this is dtml. You can look at the zpt stylesheets in CMF in its skin folder to get the idea of how to use the portal_url or properties from a properties sheet to create your css. Generally, you would use portal_url in conjunction with the image to give you the full image path the css that is rendered. Hope this helps. Regards, David Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FS based product and image replacement
Hi Nicholas. You want to put your images, templates, script pythons etc that you want to be available in a skin folder for your product. Then you make skin folder a DirectoryView as part of your product development and install so that the DirectoryView is installed with portal skins. Once you have a successful install, you can verify that your skin folder in the appropriate skin paths you want by using the Properties tab in portal skins tool. Your images, templates and scripts - whatever you have included in the skin are now available globally to your application. All you have to do is reference the image or object by its id to get a handle on it. As far as images, when you use an image in a zpt, you can look at the source and the full url is made. Here is a link to a product that illustrates how to do this for ExampleFileSystemSkin product : http://sourceforge.net/project/showfiles.php?group_id=55262&package_id=99640 With stylesheets, this is dtml. You can look at the zpt stylesheets in CMF in its skin folder to get the idea of how to use the portal_url or properties from a properties sheet to create your css. Generally, you would use portal_url in conjunction with the image to give you the full image path the css that is rendered. Hope this helps. Regards, David On Friday, August 12, 2005, at 06:45 AM, Nicholas Wieland wrote: Hi *, I'm trying to use image replacement in a FS product, but unfortunately I'm not able to catch the image on the FS (a simple gif). The image is inside 'myproduct/images', what I've tried is to create an ImageFile and use it inside the background-image directive inside the stylesheet, but also url("images/foo.gif") with and without the absolute url. How do people use image replacement in FS based products ? TIA, ngw Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) On Friday, August 12, 2005, at 06:45 AM, Nicholas Wieland wrote: Hi *, I'm trying to use image replacement in a FS product, but unfortunately I'm not able to catch the image on the FS (a simple gif). The image is inside 'myproduct/images', what I've tried is to create an ImageFile and use it inside the background-image directive inside the stylesheet, but also url("images/foo.gif") with and without the absolute url. How do people use image replacement in FS based products ? TIA, ngw Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] FS based product and image replacement
Hi *, I'm trying to use image replacement in a FS product, but unfortunately I'm not able to catch the image on the FS (a simple gif). The image is inside 'myproduct/images', what I've tried is to create an ImageFile and use it inside the background-image directive inside the stylesheet, but also url("images/foo.gif") with and without the absolute url. How do people use image replacement in FS based products ? TIA, ngw Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )