Forums

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

Include/append pages by page label

Jonathan Huet October 5, 2018

Hi,  

 

Is there a way to include in a page all the pages that: 

  • OR have a specific label?
  • OR is the child page of the current page?

 

The goal is to include automatically all the pages in the page without specifying explicitly each page to be included with the 'Include page' macro .  

 

Thanks for the help.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Bill Bailey
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.
October 7, 2018

Well you will need to write a user macro. Fortunately, someone has already created an include child pages macro. The code is here:

https://github.com/unidwell/confluence-include-child-pages-macro

Jonathan Huet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2018

Thanks for the response!  

But the 'User Macros' are only available for the Server version of Confluence and not for the Cloud one.

 

I also found this plugin that fits perfectly with what I need, but it is also only for the Server version:

https://marketplace.atlassian.com/apps/1210755/include-content-by-label-for-confluence?hosting=server&tab=overview

 

Do you have please, another way to achieve it?

 

Thanks

Bill Bailey
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.
October 8, 2018

Wasn't clear which version you had as the tag said both. I have not tried this yet, but you maybe able to install a user macro as a plugin. So the process would be:

  1. Spin up a local development instance of Confluence server
  2. Create and test the user macro
  3. Package the user macro as plugin. See user-macro-module
  4. Install the plugin in your cloud instance.

I don't know why this wouldn't work, but I have never tested this as a methodology. But this another reason I don't recommend the cloud version -- too restrictive. ;-)

TAGS
AUG Leaders

Atlassian Community Events