Forums

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

How can I add pageId display to my website?

Marek Gnoiński July 6, 2023

I would like to present the ID of my page or insert a unique ID of the document, e.g. ADR_YYYYNNN, where
YYYY - current year
NNN - the next number of the document in the current year

 

How can I do this ?

4 answers

0 votes
Marek Gnoiński August 16, 2023

The more so when I go to the information about the site:
1. Navigate to a specific page.
2. Go to the ellipses (...) at the top-right of the page.
3. Choose Advanced details > Page Information.
then I have the option to export to Word / PDF available and there is "pageId" in the link. This link had to be generated dynamically by Confluence, so access to this attribute is. But how to refer to it on any other page?

0 votes
Martin James
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.
August 16, 2023

This is a very good question. I would also like to know if there is a solution for this. We need to use the pageid as the unique identifier for that document if someone exports the page as PDF.

0 votes
Marek Gnoiński July 6, 2023

I will describe in more detail what I mean.
I'm creating a new page. I have a table with two columns on it. In the first row and the first column I enter the name "ID" and in the second column I want to automatically have the "pageId" value - page number or other numerical value from the sequence.

0 votes
Sayed Bares _ServiceRocket_
Community Champion
July 6, 2023

@Marek Gnoiński welcome to the community!

Each Confluence page already have an ID which you can access it from 

  1. Navigate to a specific page.
  2. Go to the ellipses (...) at the top-right of the page.
  3. Choose Advanced details > Page Information.
  4. The URL in the address bar will change.
    https://<cloudsitename>.atlassian.net/wiki/pages/viewinfo.action?pageId=xxxxx


xxxxx is your page ID

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events