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.
I have XML like below -
<Educations>
<Education>
<DateAwarded>1982-01-01T00:00:00</DateAwarded>
<DegreeAwarded>SM</DegreeAwarded>
<Institution>University of Chicago</Institution>
</Education>
<Education>
<DateAwarded>1975-01-01T00:00:00</DateAwarded>
<DegreeAwarded>MD</DegreeAwarded>
<Institution>Harvard University</Institution>
</Education>
<Education>
<DateAwarded>1970-01-01T00:00:00</DateAwarded>
<DegreeAwarded>BS</DegreeAwarded>
<Institution>Stanford University</Institution>
</Education>
</Educations>
I want to populate a multi-valued field with text as below -
BS, Stanford University, 1970
MD, Harvard University, 1975
SM, University of Chicago, 1982
How can this be implemented. I am trying this with feeds and feeds tamper, looks tricky.
Comments
Comment #2
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedThis should indeed be done with Feeds Tamper.
I would probably try something like this:
If that doesn't work (for example if result of the "Find replace REGEX" doesn't get passed to the "Rewrite" plugin"), I would try this:
Regex:
Replacement: