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.
- Host: GitHub
- URL: https://github.com/marcodaniels/cockpit-field-autourl
- Owner: MarcoDaniels
- License: mit
- Created: 2021-02-16T19:51:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-16T20:32:10.000Z (over 4 years ago)
- Last Synced: 2025-02-15T04:27:22.057Z (8 months ago)
- Topics: cockpit, cockpit-cms, cockpit-cms-addon
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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/addonsgit 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`