Scrivito is proudly made by JustRelate Group in Berlin, Germany, and Wrocław, Poland.
Scrivito is proudly made by JustRelate Group
New in 1.18.0


Returns an ObjSearch of all CMS objects assigned to the site context.

siteSearch = Scrivito.Obj.onSite('fr').all();
objCount = await Scrivito.load(() => siteSearch.count());

console.log('Number of objs on site "fr"', objCount);


An ObjSearch that includes all Objs.

See also



Show the 'title' attribute value of all homepages of all sites.

Homepage = Scrivito.Obj.getClass("Homepage");
objs = await Scrivito.load(() => Homepage.onAllSites().all().take());

for (var obj of objs) {
  console.log("Homepage of", obj.siteId(), "has title", obj.get("title"));