Is it possible to pass variables to an included page?

I would like to be able to define a page that can be included on other pages as a footer. One of the things I would like in this footer is some content by label. Is there a way for me to set the labels that should be used in the content by label macro so that it matches the parent page?

For example, on a page about dogs I would like to display knowledge base articles about dog as well as open JIRAs that are about dogs.

Is this possible/advisable?

1 answer

1 accepted

Use this macro in the included page - https://marketplace.atlassian.com/plugins/confluence.plugins.knowledgebase.survey.

This will show all the related content based on the labels applied for the parent page.

Example:
{dynamiccontentbylabel:showLabels=false|showSpace=false}
 

The link you included does not work for me, are you refering to "Content Survey and Reporting"? If so, where can I find documentation for that plugin? I cannot find anything at https://bitbucket.org/atlassianlabs/confluence-kb-survey-plugin/overview.

Thanks

Somehow an additional dot came at the end of the link - https://marketplace.atlassian.com/plugins/confluence.plugins.knowledgebase.survey

Yeah it is 'Content Survey and Reporting'

Unfortunately there is no docs for that.

Thanks for your answer Renjith.

Is it possible to specify a list of spaces (and page types) for the macro?

As an aside, why is this macro packaged with the survey plugin? It does not really seem related and it sounds like something that could be useful in the base product.

Cheers

Frankly, no idea. Check the code and see the features.

Thanks for your advice.

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
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

606 views 20 11
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