Previously one could get siteId and siteUrl for a specific PageData instance in a multisite enterprise environment with following code:
var siteId = DataFactory.Instance.GetSettingsFromContent(page.ContentLink).Parent.SiteId;
var siteUrl = DataFactory.Instance.GetSettingsFromContent(content.ContentLink).SiteUrl;
But well, guess that's now out of the question. Is there a clean way to get SiteDefinitions for a specific PageData instance?
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?