Skip to content

internetztube/craft-slug-equals-title

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slug Equals Title plugin for Craft CMS 5.x

The plugin does exactly what the name says. It assures that the slug is equal to the title.

Share Image

Requirements

This plugin requires Craft CMS ^5.0.0 or later.

Installation

To install this plugin, follow these steps:

  1. Install with Composer via composer require internetztube/craft-slug-equals-title
  2. 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.

Issues

Please report any issues you find to the Issues page.

How the config works

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.

Supported Types

  • Entries
  • Categories
  • Commerce Products

Screenshots

Settings settings-page

New element, that is in a section that HAS NOT BEEN flagged for overwriting. settings-page

New element, that is in a section that HAS BEEN flagged for overwriting. settings-page

Credits

Icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

Brought to you by Frederic Köberl.