RefinedWiki - Navigation disappears when using iframe-makro

Confluence: 5.1.1
Refined Wiki: 3.5.3
When using our makro "iframe" wihin a page the Refined Wiki Navigation disappears (Menue is black - no entrys were displayed). iframe code is:
## Developed by: Claus Schlotz
## @param 0:title=url|type=string|required=true
## @param 1:title=Breite|type=string|required=true
## @param 2:title=Höhe|type=string|required=true

<iframe src="$param0" width="$param1" height="$param2"></iframe>

Is this a bug? Please help. Thanks

3 answers

1 accepted

This widget could not be displayed.

Problem solved.

This widget could not be displayed.

This solves the problem:

<script type="text/javascript">

document.write('<iframe src="$param0" width="$param1" height="$param2"></iframe>');

</script>

This widget could not be displayed.

Hi Claus,

The issue seems to be related to how Confluence renders pages through velocity. I found that when rendering a page containing an iframe, everything that should be loaded after the iframe isn't rendered.

When using RefinedWiki OriginalTheme this means that dropdowns, the footer and some templates are not rendered. When using Confluence Documentation Theme instead of RefinedWiki OriginalTheme, the sidebar and footer was not rendered. So I do not believe this issue is related to RefinedWiki.

One solution would be to inject the iframe after page load. For your macro it could look like the following:

## Developed by: Claus Schlotz
## @param 0:title=url|type=string|required=true
## @param 1:title=Breite|type=string|required=true
## @param 2:title=Höhe|type=string|required=true

&lt;div id="iframeMacro"&gt;&lt;/div&gt;

&lt;script type="text/javascript"&gt;
   AJS.$(document).ready(function(){
       AJS.$('#iframeMacro').html('&lt;iframe src="$param0" width="$param1" height="$param2"&gt;&lt;/iframe&gt;');
   });
&lt;/script&gt;

Please let me know if you have further questions.

Best Regards,

Dennis

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 7 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

13 views 0 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you