Hi,
Is there any other documentation available on user macros in Confluence in addition to:
??
The reason I'm asking is because I've recently come across #contentLink2 and #userLink for displaying links to content and user profiles in user macros respectively, but I only discovered these by chance through another answer posted on this forum and by looking at the source code for some of the bundled plugins that ship with Confluence and couldn't find any reference to them in the official documentation.
I fully accept that me missing these directives could be down to my Google-Fu letting me down or me not understanding the API documentation properly, but I did spend several hours trawling through the documentation and trying different combinations of objects in Velocity to try and get what I wanted without success until I discovered these.
Did I miss something when looking at the documentation or are #contentLink2 and #userLink not documented?
Apologies if it's just me missing something in the existing documentation, but if these aren't documented and there are other hidden gems that are not publicly documented (maybe in internal documentation?) I'm sure the community would appreciate it if they could be shared.
Thanks,
Andrew.
Community moderators have prevented the ability to post new answers.
Andrew,
With #contentLink2, you're just refering to a velocity macro from confluence/template/includes/macros.vm in the installation directory.
To find this or any other snippet from the Confluence source code:
...but in this case, you don't need the source - the installation files will do just fine.
Thanks David - glad I'm not going bonkers and imagining those didn't exist in the documentation :-)
Will spend some more time in the source code.
Cheers,
Andrew.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Matthew J. Horn, could you just publish it somewhere, please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This info is a bit old but I found it quite helpful...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, there are dozens, if not scores, of macros used by the Confluence templates that are never documented. I've started compiling a list, but it's taking a long, long time to then figure out what each one does and in what context it can be used.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.