Archive - Apr 9, 2009
Breaking Drupal Comments into Multiple Pages
Submitted by coofercat on Thu, 2009-04-09 11:29I've taken the 'bold' step of breaking pages with dozens of comments into multiple pages. With Drupal, this is easy because it's just a setting in the admin screens. However, there's a problem because the 'Recent Comments' block (down on the left hand side) doesn't link to the right page.
A look at drupal.org reveals a number of patches, but none of them particularly good, and none actually making it into Drupal development. I've just created a 'patch', in the form of a theme template. It uses the Drupal cache system to save a bit of database work, which coupled with the Drupal Block Cache should see pretty decent performance. The theme template is attached to this page. Download it, and stick it in your theme's directory (rename the file to comment-block.tpl.php).
Recent comments
6 days 3 hours ago
6 weeks 3 days ago
7 weeks 6 days ago
8 weeks 1 day ago
9 weeks 1 day ago
9 weeks 4 days ago
10 weeks 1 day ago
10 weeks 3 days ago
10 weeks 4 days ago
10 weeks 5 days ago