[Wiki] changed: Doc/Dev/Slugs

Chuck Hagenbuch <[email protected]>
Newsgroups gmane.comp.horde.cvs
Message-ID <[email protected]>
chuck  Tue, 09 Dec 2008 11:27:58 -0500

Modified page: http://wiki.horde.org/Doc/Dev/Slugs
New Revision:  1.6
Change log:  update regex and allowed characters

@@ -6,10 +6,10 @@


  ++ Slug specification for Horde

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


  ++ Autogeneration

@@ -17,21 +17,13 @@
  ++ !JavaScript support


  ++ URL rewriting
-
-


  ----

-* you can't create slugs with hyphens or underscores, even though  
these are valid in urls
-
-* the character limit is quite short (longer titles can be useful for SEO).
-
-====
-
-and a few usability enhancements...
+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.")

--
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.