[Zope] Using a generated image map
Yves Bastide
Yves.Bastide@irisa.fr
Tue, 27 May 2003 08:52:51 +0200
Peter Bengtsson wrote:
> At 15:49 2003-05-26 +0200, Yves Bastide wrote:
>
>> Hi,
>>
>> I've got a script which generates both an image and an image map. How
>> to use them from a ZPT? (The problem: the image must be passed "by
>> reference", and the map "by value")
>
>
> Do it the easy way:
>
> <h3> My imagemap </h3>
>
> <img tal:replace="structure here/getMyImage" />
> <p tal:replace="structure here/getMyImageMap" > Here goes the imagemap
> html stuff</p>
>
> Using the power of ZPT for these kinds of small things is overhead.
The problem is that the image and the map are generated by one quite
costly script (with database accesses and such)...
>
> Peter
>
Yves