I'm currently working on a user macro for formatting a header of a document. This header should contain a list of different times this document has been approved.
This list will be dynamic per document. How do I go about and make such a thing?
I was thinking that it might be possible to add "sub-macros" for every line, that uses javascript to inject themselves in the main formatted table. But not sure how that will be handled when printing, etc.
With enough fiddling this might be possible but it sounds like you're pushing the limits of what user macros should be used for. If you're already doing complicated stuff like that with user macros the jump to writing real Confluence macros might not be that big for you. The tutorial for creating a Hello World macro is quite simple and from there you can work in Java which is much nicer: https://developer.atlassian.com/server/confluence/creating-a-new-confluence-macro/
You can also check out more complex Macro tutorials here: https://developer.atlassian.com/server/confluence/macro-tutorials-for-confluence/
Cheers,
Sven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.