Christopher Allan Webber 88de830fcf A revised algorithm for generating slugs.
This one does not *force* slugs, but usually it will probably result
in a niceish one.

The end *result* of the algorithm will (presumably, I have not tested
it) result in these resolutions for these situations:
 - If we have a slug, make sure it's clean and sanitized, and if it's
   unique, we'll use that.
 - If we have a title, slugify it, and if it's unique, we'll use that.
 - If we can't get any sort of thing that looks like it'll be a useful
   slug out of a title or an existing slug, bail, and don't set the
   slug at all.  Don't try to create something just because.  Make
   sure we have a reasonable basis for a slug first.
 - If we have a reasonable basis for a slug (either based on existing
   slug or slugified title) but it's not unique, first try appending
   the entry's id, if that exists
 - If that doesn't result in something unique, tack on some randomly
   generated bits until it's unique.  That'll be a little bit of junk,
   but at least it has the *basis* of a nice slug!
2013-01-15 15:48:19 -06:00
..
2013-01-07 11:44:29 +01:00
2013-01-07 11:44:29 +01:00
2013-01-15 20:08:21 +01:00
2012-12-25 20:06:03 +01:00
2012-10-23 01:10:46 +02:00
2013-01-15 14:49:50 +01:00
2013-01-07 13:52:37 +01:00
2012-02-02 09:44:13 -06:00
2012-12-21 09:08:52 -06:00
2013-01-15 16:52:22 +01:00
2012-02-02 09:44:13 -06:00
2012-02-02 09:44:13 -06:00
2012-12-25 20:06:03 +01:00
2012-12-23 12:26:34 +01:00
2013-01-07 11:44:29 +01:00
2012-02-02 09:44:13 -06:00