- Go to Browse > Confluence Admin > User Macros.
- The Create a User Macro section opens.
- Press the Create a User Macro button.
- Enter a name in the Macro Name text field. (Something like "pageid.")
- Enter a title in the Macro Title text field.
- Under the Definition of User Macro section, verify that the No macro body radio button is selected.
- Select HTML from the Output Format dropdown.
- Enter the following in the Template text box.
$content.getIdAsString()
- Press the Save button.
- Edit a Confluence page.
- In the area you wish to see the page ID, type:
{<macro_name>}
For example: {pageid}
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment