Method: Scrivito::BasicObj#slug

Defined in:
app/cms/scrivito/basic_obj.rb

#slugString

This method is used to calculate a part of a URL of this Obj.

The routing schema: <obj.slug>-<obj.id>

The default is parameterize on obj.title.

You can customize this part by overriding #slug.

Returns:

  • (String)

560
561
562
# File 'app/cms/scrivito/basic_obj.rb', line 560

def slug
  (title || '').parameterize
end