word & image count in extended entries & feeds
Posted on August 24, 2003
Filed Under Uncategorized
Now that I’m using the blog for my personal pictures (of kids, vacations and whathaveyou…portfolio stuff will still get separate pages), and I know that many read my site through an aggregator (such as the outstanding NetNewsWire) I wanted to have a way of keeping my feeds complete yet if they’re image-heavy, have those entries be opt-in.
I got it working thanks to Adam Kasley’s Word Count plug-in. Getting the plug-in to work was super easy. It was one tag in the template (well, two if you include the one that counts the images). It just took a little bit of searching to find the right code for my RSS 2.0 feed, which I found here. I’m pretty comfortable in an XHTML template, but as soon as you throw CDATA in there I get a little lost so I need to follow a recipe.
Now when I use the extended entry for pictures and the like, you’ll see a link in your feed directly to the extended page telling you how many words are in the entry and how many images to expect.
For the most part, I’ll continue to post entirely in the body. I appreciated the fact that I was able to download feeds with NetNewsWire and then read them offline. Excerpts make that difficult to do.