Test your website performance for free
Test your website performance

slug()

The slug of the CMS object.

While navigating the content, Scrivito generates URLs for the page links. The path of such a URL usually contains the slug of the page and its ID, e.g. /the-little-prince-1234567812345678.

Feel free to override the default implementation of slug in order to customize the generated URLs (see below for an example).

Returns

String

Example

Create a Page CMS object class with its own slug method: