Gottwik / Enduro

Minimalistic, lean & mean, node.js cms
http://www.endurojs.com/
MIT License
690 stars 121 forks source link

Slugs not editable #313

Open vonba opened 5 years ago

vonba commented 5 years ago

The way I understand it the URL slug of a piece of content is tied to its filename which is set at create time and then not editable (unless you rename the file).

There are many reasons we might want to change this from within the admin UI (misspelled title initially, the title changes, SEO concerns etc) - what would be the most practical way of enabling this?

One simple idea could perhaps be expanding the event hooks concept. Perhaps the ability to add a post_save hook that checks a 'slug' field and updates the filename to match the field. Would this make sense?

Ideally I would love a Model layer for this type of thing, but this obviously increases complexity.

Thanks!