Variables in templates with macros

Chris Rothbauer November 18, 2011

Has anybody been successful in inserting variable prompts (like @var@) when trying to include a macro within a template? I'd like to do something like this...

{contentbylabel:labels=@LABELS@|showSpace=false|title=Related Content|spaces=ServiceDesk}

Note the prompt for the LABELS variable. This obviously throws an error.

1 answer

1 vote
Daniel Brice July 25, 2013

This works in Confluence 4 when you specify @LABELS@ outside of your macro as well. It does not work in Confluence 5. For that discussion see: How do you add template variables as macro parameters or in plain text macro bodies?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events