Hi, thanks for answering.
It was supposed to increment a number at the end, but it seems that there's a bug in the code. Changing line 121 to $conditions = array($Model->alias . '.' . $this->__settings[$Model->alias]['slug'] =>' LIKE ' . $slug . '%'); And line 125 to $conditions[$Model->alias . '.' . $Model->primaryKey. ' !='] = $Model->id; did the trick! Thanks again! Braindead-4 wrote: > > > As far as I can see from the source, the sluggable behavior increments > a number at the end of the slug in the case the slug is already in > use. > Pls. check the beforeSave event of the sluggable behavior. > > Markus > > > > -- View this message in context: http://www.nabble.com/generating-slug-from-title---must-be-unique%21-%28using-sluggable-1.1.3%29-tp23515374p23524033.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
