Page 1 of 1
Image Map Problem
Posted: Fri Aug 22, 2008 3:43 pm
by devilslayer
Hello all,
I am trying to put an image map into my page. I have a map of the UK broken into Regional Groups. I want each regional group to link to a page using the image map.
The code I have is below:
The link for the page is:
Code: Select all
{cms_selflink page="scotland-n-ireland" text="Scotland and N Ireland"}
How do I change href="undefined" in the image map for the page? I have tried inserting the {cms_selflink page="scotland-n-ireland" text="Scotland and N Ireland"} as the href, but I get a smarty error.
Many Thanks
Re: Image Map Problem
Posted: Fri Aug 22, 2008 4:56 pm
by sn3p
You can't use cms_selflink for image maps afaik. Try this instead:
Re: Image Map Problem
Posted: Fri Aug 22, 2008 5:54 pm
by christiaans
sn3p wrote:
You can't use cms_selflink for image maps afaik. Try this instead:
true, but it depends if he is using pretty urls or not

(although this will work).
Re: Image Map Problem
Posted: Sat Aug 23, 2008 5:52 am
by Dr.CSS
uh Image map? why all those numbers can't you just do like in a menu or like here...
http://thehealthoasis.com/index.php only set to work in Firefox atm...
Re: Image Map Problem
Posted: Sat Aug 23, 2008 11:28 am
by sn3p
The numbers are the coordinates for the hit area. And because geographical borders are'nt straight lines usualy, you would need alot of numbers

Re: Image Map Problem
Posted: Wed Aug 27, 2008 5:22 pm
by devilslayer
The Image Map is for a map of the UK that is broken into Regional Groups
Scotland & Northern Ireland
East Anglian
North Eastern
North Midlands
North Western
Central Southern
South Midlands
South Wales
London
South Western
Each one of these regions on a UK Map will then link to a regional map containing individual branches within that region.
Your solution may work in some instances, but this time I need the whole area to be a link.
Thank You for your help.
Re: Image Map Problem
Posted: Wed Aug 27, 2008 5:28 pm
by devilslayer
chris-s wrote:
sn3p wrote:
You can't use cms_selflink for image maps afaik. Try this instead:
true, but it depends if he is using pretty urls or not

(although this will work).
Thank You, the index.php?page=scotland-n-ireland worked. Many thanks
Re: Image Map Problem
Posted: Sat Aug 30, 2008 9:23 pm
by Dr.CSS
Re: Image Map Problem
Posted: Wed Dec 10, 2008 11:53 am
by npwal
Hello,
I am new to CMS Made Simple and I am interested in this script to highlight the maparea. But it is not quite obvious to find the procedure to insert it in a page (Idon't have much experience with javascripts). Can you help me a bit?
Thanks
V.