Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

HTML macro - can I have more than one on a page?

Christine Sorenson October 26, 2018

HTML macros are enabled for our internal corporate wikis.

I observe that when I insert a SECOND one on a given wiki page (link to graphic with clickable image map) the second one does not work.

I am guessing - am I limited to only one HTML macro on a given wiki page?

1 answer

0 votes
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2018

Maybe you should provide the HTML code that you are trying to insert? I am not aware of any limit on the number of HTML macros (but I really try to avoid using them).

Christine Sorenson October 29, 2018

There are two images. Each  in its own section. Each gets code like this, which I park in the HTML macro. (note, I didn't include the full source URL to the graphic) When I have one image in one HTML macro on a page, it works great - image has a clickable image map.

The clickable image map is created in Adobe Dreamweaver.

When i create a second HTML macro in a different section, pointing to a different graphic, it doesn't work - meaning, you don't have a clickable image map. Note that both graphics and the pages being pointed to are almost completely different from each other. There is only one box that is in common.

Note, I already did a workaround and created one giant graphic since I presumed this was a limitation.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<img src="main_flow_102618a.PNG" alt="" width="1288" height="721" usemap="#Map"/>
<map name="Map">
  <area shape="rect" coords="451,64,783,246" href="https://wiki.web.att.com/x/YYz7N" target="_blank">
  <area shape="rect" coords="25,300,366,471" href="https://wiki.web.att.com/x/Zoz7N" target="_blank">
  <area shape="rect" coords="441,302,780,469" href="https://wiki.web.att.com/x/zSE0NQ" target="_blank">
  <area shape="rect" coords="864,304,1203,472" href="https://wiki.web.att.com/x/YJcBNQ" target="_blank">
  <area shape="rect" coords="29,528,373,697" href="https://wiki.web.att.com/x/-5kBNQ" target="_blank">
  <area shape="rect" coords="453,528,788,696" href="https://wiki.web.att.com/x/AZoBNQ" target="_blank">
  <area shape="rect" coords="868,528,1207,696" href="https://wiki.web.att.com/x/AZoBNQ" target="_blank">
</map>
</body>
</html>

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 30, 2018

With that code, you have basically created nested pages. You need to delete this section at the top

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>

And this section at the bottom

</body>
</html>

 Your code was confusing the browser. I am surprised it worked as well as it did. What you want to do is insert only blocks of HTML code in the macro, not whole pages.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events