[Zope] imagemap zpt

Frederik Vos fvos at vosberg.be
Mon Oct 20 12:10:29 EDT 2003


Paul Winkler said:
> On Mon, Oct 20, 2003 at 03:36:44PM +0200, Frederik Vos wrote:
>> Hello all,
>>
>> I have a zpt question:
>>
>> i have a imagemap, with several links to other images. And this moment
>> (i'm busy with migrating my website from pure html to zope) every image
>> have his own html pages (just because the layout), a little bit
>> overkilled
>> i think. Somehow i have the feeling that zpt can handle this very easy.
>> I found several postings on the mailinglist which are more or less
>> related
>> to my question, but didn't find a solution :(
>
> the question is a bit vague. I think that you want to avoid the need
> to maintain a separate html page for each linked image?

yes

> You can create a single template called show_image that takes an image id
> as a parameter. Your image map links then look like this:
>
> <area shape="rect" coords="0,0,100,300"
> href="show_image?img_id=cabbage.jpg" />
> <area shape="rect" coords="0,100,200,300"
> href="show_image?img_id=tomatoes.jpg" />
>
> then create a template called show_image. The contents of show_image are
> pretty simple
> ZPT and I don't feel like writing it for you ;-)
> Read the ZPT chapters in the online Zope Book, including the Advanced
> chapter.

tnx !!! just what i want to know !!!

-- 
m. vr. gr.
Frederik Vos
L4L & VosBerg at SuSE
http://www.vosberg.be




More information about the Zope mailing list