Last Modified 2008-12-09 by Chuck Hagenbuch

Slugs in Horde Applications

What is a slug?

Derived from slugs in newspaper editing: http://en.wikipedia.org/wiki/Slug_%28production%29

Slug specification for Horde

- Slugs are letters (upper or lower case), numbers, @, and underscore (_). The PCRE regex is: /^[a-zA-Z0-9_@]+$/
- Allow 255 chars


JavaScript support

URL rewriting

a few usability enhancement ideas:

  • javascript to auto-generate the slug based on the form title would be nice. Similar to how EE does things, when the slug field is empty, as a user types in the page title, the slug is generated, converting spaces to underscores or hyphens (could be config, or default to underscore). Once the slug input has a value, changing the title doesn't change the slug.
    • display a warning if a user tries to change the slug after a form has already been saved ("Warning: changing the slug will cause the link for this form to change.")