Is it possible to include a page depending of the content a template variable?

Franz Steindl August 26, 2019

Hello,

I'd like to create a template where the user of the template picks a value from a list and gets a related page included.

I have tried a solution with template variables (List values) and the include page makro but with no success.

Any ideas?

Best regards, Franz

1 answer

1 accepted

0 votes
Answer accepted
Davin Studer
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.
August 26, 2019

If you are on the server version of Confluence this could be done with a user macro. Basically, the template variable would be put into the body of the user macro and the user macro would dynamically render out a page include macro based on what was put in the body of the user macro. @Bill Bailey has written an excellent article on creating a wrapper user macro (a user macro that outputs another macro and dynamically changes the properties of the output macro).

Getting Started with User Macros - Writing a Wrapper Macro

Franz Steindl August 30, 2019

Thx for your hint.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events