#Is there a way to publish a unique content ID when publishing a page?

1 messages · Page 1 of 1 (latest)

white gust
#

Each node (the IPublishedContent type that most page types will inherit from) has both a unique Id (generally 4+ digits but not always), e.g. 1234, represented as an int. They also have a unique Key, e.g. 12345678-1234-1234-1234-123456789123, represented as a System.Guid. Either of those could be used, probably the Id based on your example.

rich shoal
#

try
'PageID': '@UmbracoContext.PublishedRequest.PublishedContent.Id'
This should give you the Id of the currentpage