Scrivito JS SDK 1.31.0 Released

Posted

Server-side access to restricted content via Node.js

You can now also access restricted Scrivito content on a server, e.g. for archiving your website content. For this, the apiKey option was added to Scrivito.configure. See also Using Scrivito with Node.js.

Copy
Scrivito = require("scrivito")
Scrivito.configure({
tenant: process.env.SCRIVITO_TENANT,
apiKey: process.env.SCRIVITO_API_KEY
})
all = Scrivito.Obj.onAllSites().all()
restricted = all.andNot("_restriction", "equals", null)
await Scrivito.load(() => restricted.count())
// => 42

Further improvements

User interface elements can be localized easily 

You can now make property views and Scrivito extensions speak the language of the logged-in editor. Check out the new API method Scrivito.editorLanguage!

It is now possible to define attribute validations for the _permalink system attribute, not only for custom attributes. See the API documentation for details, or Implementing Automatic Content Validation for a tutorial.

Thank you for using Scrivito!