Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is this more of a support request for Views? Can anyone chime in and say if this even possible? Taxonomies are another option but IIRC you need to make a new importer for each feed. I'm looking to use hundreds of feeds so that is a lot of time wasted.
If you attached the importer to a content type, here is what you can do:
Add a entityreference field to your feed item content type. Call the field for example "Parent" (field_parent). Make sure the entityreference targets the Feed content type.
Map "Feed node: Node ID" to "Parent (Entity reference by Entity ID) (field_parent:etid)".
If you use the standalone importer instead, there is not yet a way to import the RSS Feed's channel information. It looks like #1689374: Map feed Title and feed URL deals with this issue, though I'm not sure.
Thank you MegaChriz. I would have never figured that out.
Do you know how I can make it display in search-result.tpl? I tried <?php print $result['node']-> field_parent[LANGUAGE_NONE][0]['url'] ?> but I get the error "Notice: Array to string conversion in include() (line 24 of C:\Bitnami\drupal-7.35-0\. . .\search-result.tpl.php)."
Comments
Comment #1
twistor CreditAttribution: twistor commentedComment #2
janebootydoe CreditAttribution: janebootydoe commentedIs this more of a support request for Views? Can anyone chime in and say if this even possible? Taxonomies are another option but IIRC you need to make a new importer for each feed. I'm looking to use hundreds of feeds so that is a lot of time wasted.
Comment #3
MegaChriz CreditAttribution: MegaChriz commentedIf you attached the importer to a content type, here is what you can do:
If you use the standalone importer instead, there is not yet a way to import the RSS Feed's channel information. It looks like #1689374: Map feed Title and feed URL deals with this issue, though I'm not sure.
Comment #4
janebootydoe CreditAttribution: janebootydoe commentedThank you MegaChriz. I would have never figured that out.
Do you know how I can make it display in search-result.tpl? I tried
<?php print $result['node']-> field_parent[LANGUAGE_NONE][0]['url'] ?>
but I get the error "Notice: Array to string conversion in include() (line 24 of C:\Bitnami\drupal-7.35-0\. . .\search-result.tpl.php)."