Test Enterprise-Class Web CMS Scrivito Free for 30 Days
Test Scrivito Free for 30 Days
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