Learn how Scrivito CMS can help you deliver amazing digital experiences
See Scrivito CMS in action
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