Is there a way (replacement?) to get the version number of the current page in the PDF export?
There doesn't appear to be a replacement that allows you to put the current version number of the wiki page on the PDF export. This would be very useful to quickly understand whether a PDF export is at the same update level as the wiki page, or if the wiki has been subsequently updated.
-
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
-
Hi Guy,
you are absolutely right. Added a few examples to the docs right away: http://k15t.com/display/PDF/Replacement+Reference
-Stefan
Please sign in to leave a comment.
Comments
3 comments