[Catalyst] create search engine friendly uri from string

onken at houseofdesign.de onken at houseofdesign.de
Tue Dec 16 07:46:37 GMT 2008


On Mon, 15 Dec 2008 18:28:03 -0800, Ashley <apv at sedition.com> wrote:

> Just a caveat that should be in the doc you end up with if not  
> possible in the code. URIs are supposed to be unique to a resource.  
> Titles of articles and pages are not (necessarily). The end user/dev  
> will have to check for duplicates against the data and append a -II  
> or -2, and so on.
> 
> -Ashley
> 

I'll go with this approach:
I use my primary key (happens to be a uuid string) and append the string
from the title.
I read just the uuid string and dismiss everything else.
This way I don't have to worry about uniqueness and have seo friendly urls
anyway.

mo



More information about the Catalyst mailing list