[pLog-svn] force post names to be unique
Jon Daley
plogworld at jon.limedaley.com
Thu Apr 6 17:56:26 GMT 2006
I have a feature that I don't know if anyone else cares about.
And I sort of don't want it on the public user settings, since it requires
additions to the .htaccess, so I would rather people not stumble across
it, but rather explicitly want it.
If you have your custom url for posts set to /{postname}
(subdomains enabled) you have to enforce that the slugs across all posts
in a blog are unique.
I have a pretty simple patch that adds a number to the end of the
slug, and increments it until the name is unique.
So, the question is - should I add this into the main code with a
config option that isn't visible on the settings, and you have to just add
the row to your sql database if you want to turn it on?
**************************************
Jon Daley
http://jon.limedaley.com/
I pass chain letters along to all my friends. AND I VOTE!
-- Cort Stratton
More information about the pLog-svn
mailing list