The plugin does exactly what the name says. It assures that the slug is equal to the title.
This plugin requires Craft CMS ^5.0.0 or later.
To install this plugin, follow these steps:
- Install with Composer via
composer require internetztube/craft-slug-equals-title
- Install plugin in the Craft Control Panel under Settings > Plugins
You can also install this plugin via the Plugin Store in the Craft Control Panel.
Please report any issues you find to the Issues page.
Basically, this works for every Entry, Category or Commerce Product. By default, nothing is overwritten. In the settings of the plugin, you can adjust the overwriting per type (section, product type, category group).
If the overwriting of the slugs on a type has been enabled, then this setting applies to elements which have been saved the last time before installing the plugin or are newly created.
In practice, this means that old elements are not touched at first. But if you want to edit such an old element, which should be overwritten by the section according to the default setting, then the existing slug will be overwritten by default. However, if the element should keep its slug, then switch off the light switch and save the element. Then the light switch is off when editing the element again.
- Entries
- Categories
- Commerce Products
New element, that is in a section that HAS NOT BEEN flagged for overwriting.
New element, that is in a section that HAS BEEN flagged for overwriting.
Icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY
Brought to you by Frederic Köberl.