Cruft free url's

darryl <[email protected]> Tue, 18 May 2004 14:17:40 -0500
Newsgroups gmane.comp.web.syncato.general
Message-ID <[email protected]>
Thinking outloud:

The ability to key off of the post title greatly reduces the cruft of
the url's of syncato. However, the ability to drop the extension like
.item or .page would be better (never satisfied is he?).

So, how to do this?

It seems to me we're testing the pathInfo to see if
it's the front page and then using that to set the default template:

frontPage = 0
# Determine whether this is the front page or not
if (not(pathInfo) or pathInfo == "/" or pathInfo == ""):
     frontPage = 1

So if we have a pathInfo like:

/my_silly_post

With no extension we could also set a default 'item' template.
Further to that since my longer titles are yielding unfriendly
url's I was thinking of adding a <slug> or <url> to key
off instead of the <title>.

So:
My_really_long_and_detailed_title
Could be:
detailed_title

Of course the <url>'s would have to be database wide unique.

-darryl

-- 
http://randomthoughts.vandorp.ca/WK/blog



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click