Content disappears after insertion of a user macro Edited

I've created a user marco to display some HTML content created by a javascript function. But as soon as I insert this user marco into a page, the content following this user marco will not be shown anymore.

 

ProblemUserMacro.png

 

Here's the configuration of the user macro:

ConfigUserMacro.PNG

The javascript function puts the content into the shown div "Liste". So there shouldn't be a problem with non-closed HTML-tags?!

 

Can anybody give me a hint, what I'm doing wrong here?

2 answers

This widget could not be displayed.
Stephen Deutsch Community Champion Jul 20, 2017

Hi Mathias,

Do you get any errors in the browser console?

Hi Stephen,

No, there are no errors logged

This widget could not be displayed.
Stephen Deutsch Community Champion Jul 20, 2017

My guess is that the CSS of Alfresco is interfering with Confluence's CSS. Your best bet would probably be to insert the content inside of an iframe.

If you don't want to do that, you could look inside the Developer tools for the text "Testcontent" in the "Elements" tab, and it should show you where it is located on the page (it might be hidden behind some part of the imported Alfresco content), and you may have to adjust the Alfresco CSS as necessary.

I've checked the whole HTML content of the page via the console, but I can't find the text "Testcontent". So it seems this text isn't rendered at all.

I've also checked the CSS for any Alfresco stylesheets, but there aren't any on this page. We only import content from Alfresco, but no stylesheets.

But one thing is notable: When I reload the page, for a short moment I can see the Text "Testcontent", which then seems to be overwritten by the content provided by the user macro.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

341 views 2 5
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