When a feed pulls and creates feed items, I would like to to assign a URL to those items automatically. For instance, if my feed has a url of "/abc", then each feed item should have a url of "/abc/123", "/abc/124". The number on the end could be the node id. Is this possible or already exist within the module?

My main objective is to theme my feeds different. Feed abc will look different than feed xyz. This should be the same concept for the feed items, they should follow the parent.

Thanks,
Shane

Comments

Ashraf Amayreh’s picture

I can think of a number of ways to do it.

All feed items are one node type, but in the node template file you will find a variable that designates the feed id ($fid), you can use that to distinguish which $fid an item came from and theme differently.

Another option would be to assign a unique taxonomy to the feed items that are generated from each feed and then theme the node based on the term.

I think the first option is the more logical one.

Let me know which approach worked for you.

shanefjordan’s picture

How could I change it so that the entire theme is changed based on the $fid and not just theme the node.tpl.php? I would like the theme to completely change based on the fid.

Thanks,
Shane

Ashraf Amayreh’s picture

Status: Active » Closed (fixed)

This will need programming skills.

If you check the drupal core for how it designates a separate theme for the administration sections and just follow a similar approach I think you can get it to work. But it will need some pretty deep Drupal know-how.

shanefjordan’s picture

Thank you, if I get something to work, I will post back what I did.