Is there a way (replacement?) to get the version number of the current page in the PDF export?

Comments

3 comments

  • Avatar
    Stefan Kleineikenscheidt

    Hi Guy,

    this is actually possible using $page.version as a placeholder, which is short for $page.getVersion().

    Basically,  $page is basically an object of type AbstractPage (more info here here), so you can access all kind information from the page using its getters.

    -Stefan

    0
    Comment actions Permalink
  • Avatar
    Guy Eden

    That's great Stefan, thanks.

    (Maybe should be added to the Replacement Reference explicitly for those less familiar with the Atlassian classes?)

    0
    Comment actions Permalink
  • Avatar
    Stefan Kleineikenscheidt

    Hi Guy,

    you are absolutely right. Added a few examples to the docs right away: http://k15t.com/display/PDF/Replacement+Reference  

    -Stefan

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk