I am looking to publish a unique page identifier with each page. Ideally, this would be published to a datalayer similar to what is below. Can this be done?
(I know I'm linking to v8 docs, but couldn't find similar for modern. In the end, IPublishedContent and IPublishedElements still has the Id and Key properties)
Can you publish a unique page identifier?
I am looking to publish a unique page identifier with each page. Ideally, this would be published to a datalayer similar to what is below. Can this be done?
Hi Dan
Each page has its own id or key that you can use for this, check out the reference:
https://our.umbraco.com/apidocs/v8/csharp/api/Umbraco.Core.Models.PublishedContent.IPublishedContent.html#UmbracoCoreModelsPublishedContentIPublishedContent_Id
https://our.umbraco.com/apidocs/v8/csharp/api/Umbraco.Core.Models.PublishedContent.IPublishedElement.html#UmbracoCoreModelsPublishedContentIPublishedElement_Key
(I know I'm linking to v8 docs, but couldn't find similar for modern. In the end, IPublishedContent and IPublishedElements still has the Id and Key properties)
is working on a reply...