I would like to have a page generated from a template automatically labeled with user-supplied input to a template variable. I would also like to use that variable in Content-by-Label macros. I'm using Confluence 5.7. Is this possible?
Thanks.
If you create a user macro that implements the content by label macro then you could put you template variable inside the user macro body and have the user macro use the $body variable to populate the content by label macro inside the user macro. You could also create a user macro that will add a label to the page based on what is in the user macro body and put your template variable inside the user macro body.
Does that mean the user must type the label in the body form for each of the new macros I create? I tried this: ## @noparams <ac:macro ac:name="contentbylabel"> <ac:parameter ac:name="label">$body</ac:parameter> </ac:macro> This creates a form for the user to enter the label to display, but I can't get it to use a template variable for the label without requiring user input. I want to have a template variable that user input automatically substituted for the label. If I have a body parameter, doesn't that imply that user action is required?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.