How would you make separate themes for each feed?

Events happening in the community are now at Drupal community events on www.drupal.org.
ericatkins's picture

I would like to have some Aggregation feeds look different than other feeds. I'd like to import them via the aggregation module and then put them on the front page. I'd like personal feeds from, say, del.icio.us to look different (different layout, different .css) than a feed from Flickr.

I'm looking for a way to do this without writing a bunch of PHP "if" statements in node-aggregation_item.tpl.php.

Does anyone have any ideas?

For instance, is there a way to create a new node.tpl.php specific to Taxonomy related to Aggregation? Is there a way to write a tpl.php file for each source?

Ideas?

Comments

I wanted to propose the if

Ashraf Amayreh's picture

I wanted to propose the if statements, but apparently that's not what you're looking for.

Currently, this is not supported, but it does sound like a good idea.

I believe that something like node-aggregation_item-233.tpl.php which would theme all items under feed with node id 233 is what you have in mind, am I right?

But this feature is definitely less priority than others since, as you mentioned, it can be a achieved with a couple of if statements inside the node-aggregation_item.tpl.php file.

I guess I will roll with the

ericatkins's picture

I guess I will roll with the if statements.

I believe that something like node-aggregation_item-233.tpl.php which would theme all items under feed with node id 233 is what you have in mind, am I right?

Yep. That's kind of what I had in mind.

Aggregation Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: