Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,618
Community Members
 
Community Events
184
Community Groups

Format Children Display Macro

Is there any way to format the content displayed by the "Children Display" Macro?

I want to put the content into a table or something like a box, change background and font colour, etc. 

Maybe any of you have experiences. Thank you!

2 answers

1 accepted

0 votes
Answer accepted
Andrii Maliuta
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.
Mar 29, 2022

Hello @David Gfrerer ,

You cannot directly change the "Children Display" Macro being part of the Confluence platform (you could try to get it from the source jars , but it should NOT be done, you should not change the source code of the platform).

What you can do< I suppose:

  1. Create your own macro with Atlassian SDK and make the logic you need
  2. Change how the "Children Display" Macro displays the information directly in the page UI after content is rendered using HTML/CDD/JS code in HTML macro or in Space/Global custom styles. 

Hallo @Andrii Maliuta 

Thanks for your quick response, I basically got you.

What do you mean by source jars?  Can I  then get the source code of the macro just to copy it and use it in my own macro so I just have to change the formatting part?

Andrii Maliuta
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.
Mar 29, 2022

 

@David Gfrerer ,

The bundled plugins are located in {CONFLUENCE_HOME}\confluence\WEB-INF\atlassian-bundled-plugins\...

e.g. TOC plugin - toc-plugin-6.1.4.jar

Please refer to these docs to read about SECURITY and RISKS :

https://confluence.atlassian.com/confkb/how-to-remove-bundled-or-system-plugins-648544751.html

https://confluence.atlassian.com/jirakb/how-to-edit-bundled-or-system-plugins-608731476.html

Like David Gfrerer likes this
1 vote
Zoriana Bogutska_Adaptavist_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Sep 12, 2022 • edited Sep 20, 2022

Hi @Andrii Maliuta As an alternative solution, you can try to use Content formatting macros for Confluence.

This plugin allows you to customise some things by putting the children display macro inside div macro and then using the CSS stylesheet macro to change colours and etc.

But I don't know if it will match your use case, and it requires some CSS knowledge. So if you need any help, please let me know (this app is developed by my team).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events