A Sitemap for Plogger
I spent a decent amount of time looking to see if there was a sitemap generator for Plogger. After a lengthy, fruitless search I decided I would take a stab at building my own. It checked out OK with Google so I thought I would share it to see if anyone else had ideas.
This sitemap maps all collections, albums and pictures. This version assumes that .htaccess is enabled for nice URL’s, but it would be a quick rewrite to have it work without nice URL’s. It would be a long rewrite for it to check if mod_rewrite was enabled, but that could be done, too.
1.
Steve | October 21, 2008 at 10:34 AM
Hey, I’ve been looking around trying to find a way to build a sitemap for Plogger and your solution looks great!
I was just wondering if you might have some idea as to how it could be adapted to output a listing in HTML(link) instead of XML?
Thanks!
Steve
[email address redacted]
2.
Ron | October 21, 2008 at 5:38 PM
All you need to do to change the output type to HTML(link) is to change the Content Type in the head of the file and replace the XML tags with HTML(link) tags. I am not sure how you are wanting to format the HTML(link) output, but if you have any more questions, please don’t hesitate to ask.
3.
Steve | October 21, 2008 at 8:42 PM
I assume you’re the R of R.J. Carpenter? I got it all figured out but I don’t think I ended up using your sitemap very much, once I hacked it all apart. I got sort of a fit of inspiration, so I don’t exactly recall the steps taken to get from your template to the finished product.
You can see the result here:
http://www.oxidephoto.ca/sitemap.php
I’m sure
4.
Steve | October 21, 2008 at 8:43 PM
Oops, didn’t mean for a superfluous “I’m sure” at the end of that comment.
5.
Steve | October 21, 2008 at 8:44 PM
Oh, and if you want to see the source, let me know. It’s rather ingenious, making use of a couple nested whiles and concurrent database queries.
Leave a comment
Trackback | Subscribe to the comments via RSS Feed