Altering the Number of Entries on a Category Page

I've already mentioned this one, but I thought I'd copy and paste the (very simple) change required to get this one to work. I may actually add a category to hold all of these hacks instead of just throwing them in the tools category.

Ok, so the problem is that by default, category pages hold the same number of entries as the main page. If you want only one entry on the main page, you're stuck with one entry on the category page.

I've modified the main blosxom file so that it only counts entries IF you're on a date-based page, or on an index page. Here's my change:
last if $ne <= 0 && $date !~ /\d/ && $currentdir eq "";
$currentdir holds the name of the directory that's currently being prepared. If you are on the main index page, or a date-based directory, this variable is empty. With my change blosxom ONLY counts entries (last if $ne <=0) IF you are on the main index, OR in a date-based directory.

If you want to make this change, do a search for last if $ne <=... then add && $currentdir eq "" to that line and you should be all set!

Drupal User's Guide

Drupal User's Guide

Site building for Drupal 7. Includes in-depth information on Drupal's most popular site building modules, SEO and accessibility. Two complete case studies are included in the book along with the tools you'll need to build (almost) any Web site with Drupal.

Available from Amazon.com.

Front End Drupal

Front End Drupal

The industry go-to for learning theming in Drupal 6. A great companion to Lullabot's book, Using Drupal.

Available from Amazon.com.