Obj.onAllSites()

Returns a SiteContext for accessing CMS objects regardless of their site assignment.

This function is only relevant if the multi-site feature is enabled for the Scrivito CMS concerned.

Unlike Scrivito.Obj and Scrivito.Obj.onSite, Obj.onAllSites does not take account of the site assignment of CMS objects, meaning that, for example, subsequent searches based on the resulting SiteContext consider all CMS objects, independently of the site they belong to.

Returns

SiteContext – a SiteContext

Remarks

This site context is the only possible way to access an Obj within the siteForUrl callback.