Cloud - $content.getIdAsString()?

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 Oct 04, 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.

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 Oct 04, 2017

great you found a solution :-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,480 views 4 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you