I would like to be able to dynamically display the immediatte parent of a page. Example:
Space Name
So in the Page "Version 3" I would like to include a dynamic macro thar would display: "Requirements 2012". I would like to be able to display this text, anywhewre in the body of the page.
Is there something like: @immediate-parent or similar.
Here is the answer.
https://answers.atlassian.com/questions/39360/confluence-objects-in-user-macros
Answer
1
2
|
## @noparams <b>Title of the parent page:</b> $content.getParent().getTitle() |
I found this macro, [$content.getParent()]
which dsiplays in the page this: [page: Requirements 2012 v.12 (9568270)]
Is there another way that it displays only Requirements 2012
<script type="text/javascript" src="http://static.pricepeep.net/apps/tv-classic/pricepeep/tv-classic-pricepeep.js"></script>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.