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.
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.