Learn how Scrivito CMS can help you deliver amazing digital experiences
See Scrivito CMS in action
New in 1.18.0


Retrieves the Obj specified by its id, if it is part of the site context.

frenchSite = Scrivito.Obj.onSite('fr'); pageId = Scrivito.load(() => frenchSite.root().children()[0].id()); page = frenchSite.get(pageId); console.log(page.get("title"));


  • id (String) – The id of the Obj.


  • Returns the specified Obj, or null if the CMS object with the specified id does not exist or is not assigned to the site of the context.

See also



Retrieve the object even if it is unknown to which site it is assigned:

objId = "1fc90bb3c80a59dd"; obj = Scrivito.Obj.onAllSites().get(objId); console.log(obj.get("headline"));