Showing a "Published on" date in headless Sitecore AI without a publish loop

2026-11-30来源 dev.toEnglish

A "Published on" date is the date a page last went live on your website. On a traditional Sitecore XP site you could read it from the web database or a publishing event. On SitecoreAI with Experience Edge there is no web database to look at, and the head only sees what was pushed to Edge.

As part of the project need "We need to show the latest date a page was published. We could make standard fields publishable, but that only gives us Updated. We could hook into a publish event or an Edge webhook, but then we set a field, which needs a publish, which fires the hook again..."

原文:https://www.a8q9.cn/en/article/showing-a-published-on-date-in-headless-sitecore-ai-without-a-publish-loop-93f131.html

相关文章