Use of images in Zope
I know this is probably a very recurring question, but if given enough insight into it, I volunteer to make a How-To out of it to point out the nest time it comes up. Here it is: Can someone enlighten me to the DTML way of using images in Zope? I understand you can use a <dtml-var someimage> or <dtml-var "path.someimage">, but is there a way to have more control over how it would be rendered, i.e. with specifying attributes and values, as well? Thanks in advance, Eron
Yup. <dtml-var "yourimage.tag(border=0, alt='', width='', height='')"> Eron Lloyd wrote:
I know this is probably a very recurring question, but if given enough insight into it, I volunteer to make a How-To out of it to point out the nest time it comes up. Here it is:
Can someone enlighten me to the DTML way of using images in Zope? I understand you can use a <dtml-var someimage> or <dtml-var "path.someimage">, but is there a way to have more control over how it would be rendered, i.e. with specifying attributes and values, as well?
Thanks in advance,
Eron
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Chris McDonough Digital Creations, Inc. Zope - http://www.zope.org
One thing you can do is use an image object name in a standard HTML <img> tag, e.g. <img src=zope_object_name width=nn height=nn alt="some string"> and so on. Hope that's useful, Nick. ----- Original Message ----- From: Eron Lloyd <woodsage@op.net>
Can someone enlighten me to the DTML way of using images in Zope? I understand you can use a <dtml-var someimage> or <dtml-var "path.someimage">, but is there a way to have more control over how it would be rendered, i.e. with specifying attributes and values, as well?
participants (3)
-
Chris McDonough -
Eron Lloyd -
Nicholas Dobbing