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.
First off, great module and fantastic support of it.
Reading the Filters documentation but unable to find how to refer to another field or xpath. What I would like to do is take one field (fname) and concatenate with another field (lname) to create content for a third (name). What is the syntax or variable for the other fields to put in the Params field of the UI?
Comments
Comment #1
Sorin Sarca CreditAttribution: Sorin Sarca commentedfield = fname | lname
(maybe you must swap places: lname | fname)
and filters use ::join for filter, with two params: [field] and a space as glue string (on the next line).
Comment #2
aniebel CreditAttribution: aniebel commentedGreat! I didn't realize I could put both xpaths into one field. The space, however, doesn't seem to be recognized. My Param is [field] on the first line and a space on the next line below. Did I understand correctly?
To be clear, it's joining the two fields together without a space.
Am loving this module now that I can see how much it can do!
Comment #3
Sorin Sarca CreditAttribution: Sorin Sarca commentedYes there is minor bug which I forgot to fix. If you are using 2.7 release you can fix it by commenting (prepend //) line 1654 from feed_import.module file.
This one: http://drupalcode.org/project/feed_import.git/blob/38d3e6a5a9326267b3a04...
Now you will be able to save spaces in filters.
However, I would recommend you to use 3.x version (will be released in 1 week, when documentation is ready) because 2.x will not be compatible with 3.x (there is a solution but is not so simple).
Also, I need some feedback to fix bugs if any :)
Comment #4
aniebel CreditAttribution: aniebel commentedOk, I am happy to provide feedback. I assume there will be update information since I already have 2.7 installed?
Comment #5
Sorin Sarca CreditAttribution: Sorin Sarca commentedThere will be a tutorial on how to upgrade from 2 to 3.
Comment #6
aniebel CreditAttribution: aniebel commentedYes, that worked! I had already updated to 3.x dev version but that still fixed. Looking forward to testing the new stuff!
Comment #7
Sorin Sarca CreditAttribution: Sorin Sarca commented