How can I use the title of a page inside a macro called within a user macro in confluence 4?
I.e. the following inside a user macro doesn't work:
<ac:macro ac:name= "info" >$content.getTitle()</ac:macro> |
It returns an empty info box.
Hi Daniel,
Try:
<ac:macro ac:name="info"> <ac:parameter ac:name="title">Foo</ac:parameter> <ac:rich-text-body>$content.getTitle()</ac:rich-text-body> </ac:macro>
I.e. put $content.getTitle() inside a <ac:rich-text-body> element. Just did a quick test on my 4.x install and it seems to work.
Andrew.
This won't get the full title if the title contains characters between < and > symbols for instance the title
I am <not> tall
with be displayed
I am tall
Do you know if there is a fix for this?
Using 4.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.