views:

2061

answers:

2

What would be the best way to put an image map in a joomla site? Would it be good to make it part of the template or to make it as an article?

A: 

If the image map is part of the design then it should go in the template. But more than likely it will be part of the content or a module, so should go in either of those two places.

I don't know off-hand if you can add an image map with any of the Joomla editors (try JoomlaFCK if you don't already have it, that's the most full-features). Regardless, you can use the source mode or turn off the editor altogether and input raw HTML code.

It's also likely there are plugins you can use to make it easier, try http://extensions.joomla.org.

DisgruntledGoat
A: 

Found the following that helped out: http://code.google.com/p/imgmap/wiki/Joomla_setup

Instructions for installing were a bit confusing. Below are the steps I followed to install: 1. Copy files to plugins/imgmap/

  1. Edit {yourjoomlainstance}/plugins/editors/tinymce.xml, after 'directionality' add lines:

Hide

Show

  1. Edit {yourjoomlainstance}/plugins/editors/tinymce.php, after 'XHTMLxtras' add lines: if ( $imgmap ) {

    $plugins[] = 'imgmap';

    $buttons3[] = 'imgmap';

    $elements[] = 'img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],map[id|name],area[shape|alt|coords|href|target]';

}

  1. Add the following to the "Extended Valid Elements" parameter: img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],map[id|name],area[shape|alt|coords|href|target]

More details on what I tried are here ---> http://www.criverapr.com/2009/06/creating-image-maps-in-joomla.html

Carlos