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

getByPermalink(permalink)

Fetches the Obj with the given permalink from the site context.

frenchSite = Scrivito.Obj.onSite('fr')
frenchBlog = frenchSite.getByPermalink("blog");

console.log(blog.get("title"));

Params

  • permalink (String) - The permalink of the Obj.

Returns

Obj | null - Obj if an object with the given permalink exists and is assigned to the site, otherwise null.

See also

Obj.getByPermalink