Path

ez.no / ezpublish / documentation / incoming / image map


Image Map

These documentation pages are no longer maintained. Please visit the new documentation site.

To create a image map class you will need these attributes:

* name: text line
* image_map: text field
* banner: image

Here is an template used for embedded banner objects. (override for embed with class x )

{section show=eq( $object.data_map.image_map.content, true() ) }

 

<img USEMAP="#banner_map" src={$object.data_map.banner.content["large"].full_path|ezroot} alt="{$object.data_map.name.content}" border="0" />

 

{$object.data_map.image_map.content}

 

{section-else}

 

<a href={$object.data_map.link.content|ezurl(double)}>

<img src={$object.data_map.banner.content["large"].full_path|ezroot} alt="{$object.data_map.name.content}" border="0" /></a>

 

{/section}

This information is a modified text from: http://www.ez.no/community/forum/developer/new_datatypes

More info about image maps can be found here :
http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.6

Comments