Skip to content

Kirby 3.5.7.1

slugs

Set language for slug generator

Set language for slug generator

Since 3.0.3

You can set a language for Kirby's slug generator, so that it uses the language specific settings:

/site/config/config.php
return [
  'slugs' => 'de'
];

Additionally, you can define custom rules:

Str::$language = [
  'ß' => 'sz' 
];

These custom rules have to be stored in a plugin.

Set allowed max length of slugs

Since 3.4.3

You can set a maximum length for page slugs:

/site/config/config.php
return [
  'slugs.maxlength' => 120
];