Planet , Drupal Style

So when you setup an aggregator there's this one thing you miss from a regular planet ...the list of blogs with their individual Feeds.

I wanted to use this for planet.loadays.org again and realized I don't know where I got this snippet from or if I wrote it myselve or whatever .. but I do realize that unless I document it here I won't be able to point other people to it again :) So just create a block like this one :

  1. <?php
  2.  
  3.  
  4. $subscriptions = db_query('SELECT title,link,url FROM {aggregator_feed} ORDER BY title');
  5. while ($list = db_fetch_object($subscriptions)) {
  6. print "<a href=\"$list->link\">$list->title</a> (<a href=\"$list->url\">feed</a>)<br>\n";
  7.  
  8. }
  9.  
  10. ?>

Comments

David Herron's picture

#1 David Herron : May be another advantage of FeedAPI based aggregation

Under FeedAPI the aggregated sites are listed in nodes. This means you can make a view of those nodes.