Image maps in snippets

This forum is for all Flare issues not related to any of the other categories.
Post Reply
deeptikorwar
Sr. Propeller Head
Posts: 111
Joined: Tue Aug 20, 2013 11:38 pm

Image maps in snippets

Post by deeptikorwar »

Hi,

I am trying to insert image map into a snippet, but the option is greyed out. I am following the process described in the below topic.

http://webhelp.madcapsoftware.com/flare ... ight=image map

Am I missing anything? The topic describes the same procedure for both topics and snippets. The Image map works in topics but not in snippets.

Thanks,
Deepti
cg_nielsen
Jr. Propeller Head
Posts: 3
Joined: Thu Mar 12, 2015 10:43 am

Re: Image maps in snippets

Post by cg_nielsen »

I know this is old, but I found a blog post that was really helpful here http://www.flareforhelp.com/2010/07/sin ... image-map/. Basically you can't create image maps in snippet files because they don't have headers, but that blog post has a way around that which enables you to hack an image map into the snippet.
deeptikorwar
Sr. Propeller Head
Posts: 111
Joined: Tue Aug 20, 2013 11:38 pm

Re: Image maps in snippets

Post by deeptikorwar »

Thank you for sharing the post Neilsen.
oremphelyn
Jr. Propeller Head
Posts: 8
Joined: Tue Nov 06, 2018 4:44 pm

Re: Image maps in snippets

Post by oremphelyn »

Here is a workaround that seems to be working for me:

Create the image map in a document.
Copy the <map>...</map> code and the image with the usemap attribute in the document.
Create the snippet and open it using the Text Editor.
Above the <body> tag in the new snippet, manually add <head></head> tags.
Below the <body> tag, paste the <map>...</map> code and the image with the usemap attribute in the snippet.

When I saved the snippet, all of the image map code is propagated to wherever the snippet is used.

I've found two drawbacks:
-- I am unable to right-click on a snippet in a document and select "Open Link"
-- When I include the same snippet in a topic more than once, Flare throws an error about the same map name being used more than once in the same document.
Post Reply