Problem: I want to create a dynamic link to the current page based on the title of the current page.
I had our confluence admin create the macro which I found at:
http://confluence.atlassian.com/display/DISC/Show+Page+Name+as+Link
This seems to work once, however, when the link is rendered it shows up with at + but then does link to the page properly when clicked.
The problem is when the page is edited, the text [{pagename}] has been replaced with:
[{pagename}
&linkCreation=true&fromPageId=38176348" class="createlink"linktype="raw" wikidestination="{pagename}
" originalalias="{pagename}
" >{pagename}
|/pages/createpage.action?spaceKey=ClientEngineering&title=%3Cdiv%20class=]
Anyone have an idea?
You could use report-info... something like:
[{report-info:page:title}]
Let's say you wanted to use the title of the parent page as a prefix, you could do something like:
[{report-info:page:parent > page:title} Your Wiki Suffix]
I recently coded up a navigation bar that allowed somone to "click" to create sub sections within a project area using the reporting macro in conjunction with the add-page macro to attempt to push naming consistancy within a project. For each subsection within a project, I had the following code (edited for the specific section):
{report-list}{local-reporter:page:parent > content:children} {content-filter:@self|labels=+fy12_actions} {local-reporter}{report-body}{report-link}Action Items{report-link}{report-body}{report-empty}{add-page:allowRename=true|template=FY12 Project Actions|live=true|name=%content:title% Action Items|parent=@parent}Action Items{add-page}\\{report-empty}{report-list}
Hopefully that gives you some ideas...
Dave
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.