Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
AI OnAI Off
Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
var resolver = ServiceLocator.Current.GetInstance<SiteDefinitionResolver>();
var site = resolver.GetDefinitionForContent(page.ContentLink);
var siteId = site.Id;
var siteUrl = site.SiteUrl;
Hi!
Previously one could get siteId and siteUrl for a specific PageData instance in a multisite enterprise environment with following code:
But well, guess that's now out of the question. Is there a clean way to get SiteDefinitions for a specific PageData instance?