PHPackages                             raffaelj/cockpit-uniqueslugs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. raffaelj/cockpit-uniqueslugs

ActiveCockpit-module[Utility &amp; Helpers](/categories/utility)

raffaelj/cockpit-uniqueslugs
============================

Unique slugs for collection entries in Cockpit CMS v1

0.5.5(3y ago)1512424MITPHP

Since Aug 15Pushed 2y ago2 watchersCompare

[ Source](https://github.com/raffaelj/cockpit_UniqueSlugs)[ Packagist](https://packagist.org/packages/raffaelj/cockpit-uniqueslugs)[ Docs](https://github.com/raffaelj/cockpit_UniqueSlugs)[ RSS](/packages/raffaelj-cockpit-uniqueslugs/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (3)Used By (4)

UniqueSlugs
===========

[](#uniqueslugs)

**This addon is not compatible with Cockpit CMS v2.**

See also [Cockpit CMS v1 docs](https://v1.getcockpit.com/documentation), [Cockpit CMS v1 repo](https://github.com/agentejo/cockpit) and [Cockpit CMS v2 docs](https://getcockpit.com/documentation/), [Cockpit CMS v2 repo](https://github.com/Cockpit-HQ/Cockpit).

---

Unique slugs for collections in [Cockpit CMS](https://github.com/agentejo/cockpit)

Installation
------------

[](#installation)

Copy this repository into `/addons` and name it `UniqueSlugs` or use the cli.

### via git

[](#via-git)

```
cd path/to/cockpit
git clone https://github.com/raffaelj/cockpit_UniqueSlugs.git addons/UniqueSlugs
```

### via cp cli

[](#via-cp-cli)

```
cd path/to/cockpit
./cp install/addon --name UniqueSlugs --url https://github.com/raffaelj/cockpit_UniqueSlugs/archive/master.zip
```

### via composer

[](#via-composer)

Make sure, that the path to cockpit addons is defined in your projects' `composer.json` file.

```
{
    "name": "my/cockpit-project",
    "extra": {
        "installer-paths": {
            "addons/{$name}": ["type:cockpit-module"]
        }
    }
}
```

```
cd path/to/cockpit-root
composer create-project --ignore-platform-reqs aheinze/cockpit .
composer config extra.installer-paths.addons/{\$name} "type:cockpit-module"

composer require --ignore-platform-reqs raffaelj/cockpit-uniqueslugs
```

How to use
----------

[](#how-to-use)

Add these options to `path/to/cockpit/config/config.php` to specify the collections and field names for slug generation:

```
