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 Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,224 views 4 6
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