[pLog-svn] force post names to be unique

Reto Hugi plog at hugi.to
Thu Apr 6 18:22:21 GMT 2006


Hi Jon

This sounds like an interesting option. I'd suggest you implement it
like this:

define('UNIQUE_SLUG', 0);

if ( $this->_config->getValue( "use_unique_slug", UNIQUE_SLUG) == 1 )
[...]

what are the additions to the htaccess?

further more it might be nice if we had it documented under advanced
topics (administration) in the wiki. I'd gladly help with that, just
provide me the raw content, I'll do the rest.

reto

On 06.04.2006 19:56, Jon Daley wrote:
>  	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
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list