Re: [Zope] how to get title property from python?
19 Mar
2003
19 Mar
'03
1:05 p.m.
From: "Jaroslav Lukesh" <lukesh@seznam.cz>
I customize STX and want to get from image property Title image description in python script:
<img src="%s" alt="get_title_from(%s)">
Would you like to know me how, please?
If the image object is called "image", then you use "image.title". To get HTML that shows the image, you can use the tag() method: "image.tag()" It will set the alt to the image title automatically.
From DTML or ZPT you do this by just calling the image.
<dtml-var image> or <img tal:replace="here/image">
8420
Age (days ago)
8420
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lennart Regebro