Thursday, March 8, 2012

Show the Content ID of a Page

The following instructions are based on Jeremy Largman's instructions. To view the content ID of a page, complete the following procedures. NOTE: you must be a Confluence admin to add a new user macro.
  1. Go to Browse > Confluence Admin > User Macros.
  2. The Create a User Macro section opens.
  3. Press the Create a User Macro button.
  4. Enter a name in the Macro Name text field. (Something like "pageid.")
  5. Enter a title in the Macro Title text field.
  6. Under the Definition of User Macro section, verify that the No macro body radio button is selected.
  7. Select HTML from the Output Format dropdown.
  8. Enter the following in the Template text box.
    $content.getIdAsString() 






















  9. Press the Save button.
  10. Edit a Confluence page.
  11. In the area you wish to see the page ID, type:
    {<macro_name>}
    For example: {pageid}

No comments:

Post a Comment