[ZPT] Image Maps in ZPT

norman norman_khine at yahoo.co.uk
Thu Nov 16 17:06:44 EST 2006


Hello,
I have a ZPT page that has two properties, the image cp16 and the ImageMap coordinates.

In my ZPT, I have this code

        <div align="center">
        <img src="images/spacer.gif" usemap="#map" tal:replace="structure python:here.imageTag('450x450', 'cp16', usemap='#map')">
        <map name="#map">
        <area tal:define="area python:category['cp18']"
               tal:attributes="shape python:area.split(':')[0];coords python:area.split(':')[1];href python:area.split(':')[2]">
        </map>
        </div>

in cp18 text property I have the following:

rect:88,10,175,36:/blah/blah
rect:88,10,175,36:#
rect:88,10,175,36:#
rect:88,10,175,36:#
rect:88,10,175,36:#

I cannot get this to work, as when I view the source only line 1 is returned in the html source and the rest are ignored.

Any help would be much appreciated.

Cheers

Norman

 Send instant messages to your online friends http://uk.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zpt/attachments/20061116/4a99e131/attachment.htm


More information about the ZPT mailing list