Possible to use Conditional Content or Include+ in Confluence code blocks?
Hi there,
I am using Scroll versions' macros for conditional content and "Include+" to have different product names (such as "A" and "B) when generating the product documentation for "A" and "B". This works nicely.
Also I am using the Confluence "Code Block" macro when a specific code must be described.
Now I have come upon the necessity to include the product name within a code. I would love to use the macros of Scroll versions within "Code Block". Unfortunately, the commands to include the macros are disabled. And copying&pasting an existing macro into the code block is also not working.
So this seems not to be supported. Is this true? Or there any plans to offer the possibility to use Scroll versions' macros for the code block as well?
So I must use a generic name within the code. Or I have 2 (or more) code blocks (one for each needed product variant).
Do you have any other ideas?
Cheers,
Eva
-
Hi Eva,
thanks for reaching out.
This is, unfortunately, a Confluence limitation. Therefore, Confluence just doesn’t seem to allow other macros inside the code block macro. We also don’t have any plans to develop our own code block macro.
The biggest likelihood would probably be that another app vendor with an own code block app, could implement the possibility to insert other macros. You could for example try reaching out to Advanced Codeblocks for Confluence or any other similar app vendor on Marketplace and see if this is something they could implement.
Otherwise, for now, I would say the workarounds you have suggested is what we also would suggest.
I hope this was of help.
Cheers,
Johanna (K15t)
Please sign in to leave a comment.
Comments
2 comments