I have a SXA site created and under "/settings/Site Grouping" I have defined a Site item.

I want to access "Other Properties" fields (ex: "dictionaryPath" which I have added into Other properties) using Sitecore api.

I hope these properties are getting merged into SiteInfo property like it does when we define it in the "site" settings definition in the configuration files.

1 Answer 1


These items can be queried using code like this:

var siteInfo = ServiceLocator.ServiceProvider.GetService<ISiteInfoResolver>().GetSiteInfo(Context.Item);
if (siteInfo != null)
    var siteContext = new SiteContext(siteInfo);
    var dictionaryPath = siteContext.Properties["dictionaryPath"];

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.