How can I get the reference of a page?

Version 2.2 by Vincent Massol on 2016/11/25

You might need to know the reference of a page. For example this is needed to use some macro that take a reference as parameter (such as the Include Macro or the Display Macro).

There are several ways:

  • (Future). When XWIKI-13362 is implemented you'll be able to get the info from the Ïnformation tab of any page.
  • Understand the Standard URL Format and derive the reference from the URL.
  • Edit the page you wish to reference using the wiki editor, add the following {{velocity}}$doc.documentReference{{/velocity}} and press "Preview" (so that the page isn't saved) and check what's displayed.

Get Connected