Cloud - $content.getIdAsString()?

David Costa Faidella 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 4, 2017

great you found a solution :-)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events