Title photo
frugal technology, simple living and guerrilla large-appliance repair
Mon, 29 Feb 2016

Update on the Counter addin, version 3, for Ode sites

I've been working on and off on the next version of the Counter addin for Ode sites.

The last update added counts of photos in the blog's filesystem to the original counts of entries with breakouts for traditional blog entries and social updates (basically counting everything in the whole documents directory and the updates directory, then using a little math.

I used the File::Find CPAN module as the backbone of the addin.

The next thing I wanted to do, also using File::Find, was to crawl the blog's filesystem and generate a categories list that can be displayed on the site.

So I've been playing with File::Find, Perl regular expressions and arrays.

I am able to generate an array made up of every directory that contains Ode posts, and I'm working on the regex to make the HTML and display text look exactly the way I want.

At this point I have a pretty good looking array, and I'm ready to move the Categories code (which I'm developing in a local directory with a "dummy" filesystem) into the main Counter addin code.

There are still some issues to work out, but as soon as I get the next version of the Counter addin ready, I will make it available for download and also hopefully have it on Github.