The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Children Display Macro will render h2 that will include all content

Carsten Klein
June 15, 2019

The children display macro will render all of its content as children of an otherwise redundant h2 element, e.g.

 

<div class="innerCell">
<h2 id="ComputerGamesDevelopment-ConceptsandIdeasArchitectureGamesTemplatesGlossary"><ul class="childpages-macro conf-macro output-block" data-hasbody="false" data-macro-name="children"><li><a href="/display/CGD/Concepts+and+Ideas">Concepts and Ideas</a></li><li><a href="/display/CGD/Architecture">Architecture</a></li><li><a href="/display/CGD/Games">Games</a></li><li><a href="/display/CGD/Templates">Templates</a></li><li><a href="/display/CGD/Glossary">Glossary</a></li></ul></h2><p><br></p></div>

 

 

which seems to be utterly wrong. Why is there the containing h2 element at all?

Would it not be more suitable to make it a div instead, or eliminate that container altogether as it is totally redundant?

 

N.B.: this will not happen always, especially if you have already placed headers in your page. it will only happen if you have no headers at all, i.e. a page without any content other than the inclusion of the children display macro.

4 answers

4 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Carsten Klein
May 14, 2021

Just checked with confluence 7.10.0 and everything is working fine.

So this can be closed.

0 votes
Answer accepted
Carsten Klein
May 6, 2020

This seems to have been fixed. I am no longer seeing the redundant h2 heading element and everything seems to be working just fine with the children display macro.

0 votes
Answer accepted
Carsten Klein
July 9, 2019

I just noticed the other day that this will only occur when you have sections on your page. Then the children display macro will render its content in the way described.

0 votes
Answer accepted
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 17, 2019

Hello Carsten,

Thank you for providing your feedback and explaining what you’re seeing. We’ve taken this feedback and created a feedback request on your behalf. You may find this request at CONFCLOUD-66891.

We’re attempting to reach out to see if we can provide an explanation of what you're seeing and the method used. Please note that since this is not directly related to support we will attempt the best effort to get you an answer.

Regards,
Stephen Sifers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events