Macro To List Table Cell Contents

We use confluence to document IT systems for our clients.  We create pages which contain IP addresses for various pieces of equipment.  I was wondering if there is way to tag the IP address on those pages and then insert a macro in a parent page that would list all the IP's.  

For example, i have a page for a router with an IP address on it.   Then I have a page with a server that has an IP on it.  On another page can I insert a macro that will make a list of those IP's.

3 answers

1 vote
Davin Studer Community Champion Dec 19, 2014

Have you looked at the page properties and page properties reports macros. I think that will do what you want. On your child pages you would put in a table with two columns the left column is the key and the right is the value. Surround that with a page properties macro. See below screenshot.

image2014-12-19 9:23:30.png

Next add a label to the child page. Something like server-page.

image2014-12-19 9:24:34.png

On your parent page add a page properties report macro and restrict to to using the server-page label.

image2014-12-19 9:26:2.png

When you view the parent page you should see something like this. You can add more key/value pairs to the child page table as well to see more columns in the report.

image2014-12-19 9:27:51.png

The usual "page include" does not work for you?

You can try something like https://marketplace.atlassian.com/plugins/biz.artemissoftware.confluence.multiexcerpt.MultiExcerptMacro (you tag what you want to make as "excerpt" and then reference it from another page(s))

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

348 views 16 18
Read article

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