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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.