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.
In stock OA 7.x-2.615 I am unable to get section to apply to created nodes from a feeds importer unless the target is Document Page, or Event.
Steps to reproduce:
Success:
- Create an importer in the same style as iCal Importer with attached content type with fields for Group and Section
- Set Processor Settings target Bundle to Document Page or Event
- Import nodes
Result: Generated nodes share Group and Section settings of the importer node.
Failure:
- Use the same working importer used in the success example
- Set Processor Settings target Bundle to Task or something custom that has Group and Section fields
- Import nodes
Result: Generated nodes share only Group setting of the importer node. Section is missing.
Why does this work for two content types, but not others that have the same Group and Section fields?
Comments
Comment #2
Argus CreditAttribution: Argus as a volunteer commentedDon't you think this is a bug? I only have experience with the Document Page and Event content types with regards to the Feeds module. I do remember the Sections sometimes don't get set correctly depending on which Group and Section you are currently in. Perhaps that helps.
Comment #3
cgove CreditAttribution: cgove commentedMaybe even a feature request? I'm not sure if it was ever designed to work for other content types. I assume this functionality is hard-coded somewhere in OA since the feeds module has no awareness of Sections. I'm hoping someone can point me in the direction of where that functionality is coming from so I can replicate it.
Comment #4
cgove CreditAttribution: cgove commentedI managed to get this working with:
https://www.drupal.org/project/feeds_entity
It adds every field from the attached importer node as a source and every target field on the generated nodes as corresponding targets.
Comment #5
Finnaholm CreditAttribution: Finnaholm commentedI use standalone importers for custom content types and had this problem (missing section).
I solved it with a custom feeds tamper plugin which find the correct section ID based on the space name.
If anyone is interested I could share this plugin.