An open API service indexing awesome lists of open source software.

https://github.com/marcodaniels/cockpit-field-autourl

Cockpit CMS addon to auto generate url based on other fields.
https://github.com/marcodaniels/cockpit-field-autourl

cockpit cockpit-cms cockpit-cms-addon

Last synced: 6 months ago
JSON representation

Cockpit CMS addon to auto generate url based on other fields.

Awesome Lists containing this project

README

          

# Cockpit CMS Addon Field AutoURL

This addon creates a field type that auto generates an url on the go.

## Install

Clone this project to the addons folder.

```
cd path/to/cockpit/addons

git clone https://github.com/MarcoDaniels/cockpit-field-autourl.git
```

Create a field `Autourl` field type with a `pattern` string options.

Use a colon `:` to define what field name to use in the pattern:

```
{
"pattern": "/myprefix/:field1/:field2/"
}
```

**Note:** Currently it only supports field types `text` and `select`