Forums

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

Cloud - $content.getIdAsString()?

David Costa Faidella
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!
October 4, 2017

Is there an equivalent way of accessing the ID of a page to be rendered in a page?

Essentially the equivalent of 

$content.getIdAsString()

but for Confluence Cloud?

 

1 answer

1 vote
Thomas Schlegel
Community Champion
October 4, 2017

Hi David,

as far as I know, this is not possible with Confluence cloud. You can't create user macros or add apps there that will output the id on the page.

David Costa Faidella
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!
October 4, 2017

thanks Thomas. Found a way via add-on url contextual parameters. 

Had to use page.id (deprecated) since content.id not working as per this bug:

https://ecosystem.atlassian.net/browse/CE-1009

Thomas Schlegel
Community Champion
October 4, 2017

great you found a solution :-)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events