trying to use map / usemap on multipart logo gif in main header of each page. Since it is the main header it only seems addressable via the logo-loading section of the theme. however, the Map and Usemap html elements are being rejected.

Any tips?

Comments

nedjo’s picture

The easiest way is to edit your theme template. E.g., if you're using bluemarine, open the file themes/bluemarine/xtemplate.xtmpl and put the code you need there, e.g., change

<img src="/{logo}" alt="Home" />

to

<map name="logomap">...</map><img src="/{logo}" usemap="#logomap" alt="Home" />
pdann’s picture

thank you. however, chameleon doesn't seem to have a .xtmpl file, just a .theme file. I'll look at bluemarine to see about switching to it. otherwise, is there a way to generate or download the template file for chameleon?

sepeck’s picture

chameleon.theme is it's own self contained theme. From a quick glance, it looks like what you will want is to modify line 40.

-sp
---------
Test site...always start with a test site.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

SergioGuru’s picture

Extending original question: how can client-side imagemap (e.g. <map id="imagemap"></map>) be submitted to Drupal? I use TinyMCE and cannot insert imagemap code to image.

Update: I solved the issue by direct editing of teaser and body field (e.g. DBA assist) with pasting imagemap code. My client won't change this page - but I'd like general solution to this as database editing is obviously not user-friendly.

nedjo’s picture

You shouldn't need to use db editing. Maybe you just need to add to the allowable tags in the HTML filter, or else post selecting "full HTML" as the input format.