Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to show the page ID of the current page and have it searchable?

Scott Dorman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2019

As part of ISO quality standards some documents must have a unique identifier shown on the page. I was hoping to use the inbuilt page id attribute of the confluence page.

This can easily be achieved by creating a user macro and using the following code. The only problem is the displayed page id is not searchable. This lack of searchability makes it almost useless. Is there anyway around this that does not involve copy paste from the information page? I would like to put the automated solution in a template.

Code to show page id:

$content.getIdAsString()

1 answer

0 votes
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2019

This is a lot harder than it would seam. I did a look at the search syntax, and pageID is not an available field in the builtin search.

But I did find this plugin metadata-for-confluence that seems it will do what you want per this doc page:

https://support.communardo.de/pages/viewpage.action?pageId=65405541

I have not tried this plugin, but it seems very powerful.

Franz Reichard _Communardo_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2020

Hello,

thank you @Bill Bailey for pointing out our app Metadata for Confluence as this would provide a good solution for this use case.

But since we moved our documentation you will find the current documentation here:
https://communardo.atlassian.net/wiki/spaces/METADATA/

If you have further questions or support requests you can always contact our support.

Kind regards

Franz
Communardo Support

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events