Re: Title based URLs
Kimbro Staken <[email protected]> Wed, 12 Nov 2003 11:26:03 -0700
| Newsgroups | gmane.comp.web.syncato.general |
|---|---|
| Message-ID | <[email protected]> |
OK, pages work too, but that means titles have to be unique across items and pages. I don't know how well this is going to work, there's probably going to have to be something else added. We'll see, I'll let it settle for a few days and see what comes from it. I've finished converting the styles to use the new naming and in the process cleaned it up so it would be trivial to change it back if necessary. The URLs are much better now though, especially for pages which I didn't like at all before. On Nov 12, 2003, at 10:35 AM, darryl wrote: > I wasn't thinking so much of weblog type posts more the 'static' pages > i started setting up. > Either way it looks like a good change. > > Articles like this are the reason for my prodding :) > > > http://www.ashbykuhlman.net/blog/2003/07/27/2227 > > Cheers, > darryl > > Kimbro Staken wrote: > >> Continuing the discussion started here >> http://randomthoughts.vandorp.ca/syncato/WK/blog/673?t=item >> >> I just added an initial change to handle more descriptive URLs for >> blog posts. I haven't changed the stylesheets to use it yet, but I >> will after some more testing. The old style URLs still work and >> that's really still the preferred way to manage data, the new style >> is just better for presentation to users. >> >> Using the new scheme the URL I pasted above would become. >> >> http://randomthoughts.vandorp.ca/syncato/WK/blog/ >> XSL_site_assembly.item >> >> This is a more bloxsom like URL with the title having spaces replaced >> with _ and real _ replaced with \_. The .item is the stylesheet to >> use, if you wanted it to be .html you just have to rename the >> stylesheet, or better create a new one that extends item.xsl. >> >> The one thing I'm worried about with this scheme is that titles now >> have to be unique. I'm not enforcing that yet, and I don't really >> like the idea but if you don't you'll end up with item pages that >> show all the items with the same title. Hmm, you know that actually >> could be useful now that I think about it a little more. For instance >> you could have a running series of posts that would all show up on >> the same page. i don't know. Useful or bug? >> >> Actually, just tested that and it doesn't show more then one item >> like I expected. It should, guess that's a bug. >> > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > Syncato-general mailing list > Syncato-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/syncato-general > > Kimbro Staken Software, Consulting and Writing http://www.xmldatabases.org/ Apache Xindice native XML database http://xml.apache.org/xindice XML:DB Initiative http://www.xmldb.org ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/