Any idea how i can set the title attribute of an area map generated for a diagram object ?
Now it is by default "-", but i would like it to have the name of the linked object
<area title="-" href="fc2a058056a61e20.htm" shape="rect" coords="3007, 380, 3253, 453" target="_top">
<area title="Name of the object" href="fc2a058056a61e20.htm" shape="rect" coords="3007, 380, 3253, 453" target="_top">
Thanks or your reply
Solved! Go to Solution.
I believe you are using the [DRAW] tag to create your diagram and the associated maps in your descriptors.
In my experience, you can't really easily change what's automatically written with this tag, but as a workaround you can modify the text after it was created.
Using descriptor's functions:
The entire diagram ans it's map is created using the tag [DRAW]. If you know what is written (and you know it), you can surround the tag with the tag [Stringfunction]:
[Stringfunction=SearchReplaceRegularExpression RegularExpression='title="-"' String='title="myname"'] [Draw link=InOut Target="_self"/] [/StringFunction]
Use simple quote for the tag's parameters (RegularExpression and String) so that you can use double quote for your html tag. The result is :
But as said earlier I could not find a solution for "myname" to be a variable (using [Buffer] tag did not work). You can use this solution if your title can always be a hard string.
You do that by adding a bit of JS in the descriptor juste below the [DRAW] tag:
The bad thing is as it's changed dynamically after the page rendering, when you look to the source you can't see the changes.
You can still verify it worked by using the explorer's debugger (F12 in IE or Firefox and expand the nodes in the explorer tabs)
Many thanks for your clear answer and all the effort you made !
I think i will go for the first solution with the hardcoded string and put something like "Click here for more detail.."