Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Could you elaborate on how this module is supposed to work? Looking at the code I assume some checkboxes should show up on the mapping, but I don't see this happening.
I followed this thread https://www.drupal.org/node/1107522, but it's not explained there either I think.
I tried to get it to work with some changes. In the end I started all over again and that works. But even after applying those changes to your module it doesn't work. Anyway, hereby the module I wrote based on yours. Hope it is of any use.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2323785-getting-module-to-work.diff | 5.53 KB | vbard |
Comments
Comment #1
infokleene CreditAttribution: infokleene commentedComment #2
milossramek CreditAttribution: milossramek commentedHi, according to the description your module is exactly what I need - no changes of fields not existing in an import feed (csv file in my case). However, does not work for me - the fields are reset. Should I switch this functionality on somewhere?
thanks
Milos
Comment #3
nntechnology CreditAttribution: nntechnology commentedHi, any chance of this becoming a published module? No checkboxes appear for me either, i tried with the dev release of Feeds as well but that caused errors. In the end i had to spend a lot of time figuring out how to hard code the fields that i wanted to ignore zeros, not ideal, but it was crucial for my customers site...
Comment #4
vbard CreditAttribution: vbard commentedHi.
I've got that module to work. Here is a patch and a whole module for those who don't want to go patching. I've done some testing, module seems to work good for all kind of field types I had in my testing project site.
Comment #5
milossramek CreditAttribution: milossramek commentedHi,
I have just tried the full module of #4 - with no success, the fields still get deleted. Are there any settings?
--
milos
Comment #6
milossramek CreditAttribution: milossramek commentedHi,
there must be settings somewhere - if the block
// Will do only if our setting on that mapping is set.
if (empty($mapping['feeds_empty_use_old']) ) {
continue;
}
in feeds_empty.feeds.inc is commented out, the module works as expected.
I would expect such settings in Structure/Feeds Importerd/.../settings/FeedsNodeProcessor, but there is no such thing there (pls see the screenshot node_proc_settings.png)
--
Milos
Comment #7
vbard CreditAttribution: vbard commentedHi MIlos!
You should expect seeing that settings in "Mapping" section and you can set it for every field separately. See screenshot.
Comment #8
milossramek CreditAttribution: milossramek commentedOh, thank you, I did not expect the settings there - however, since each field can have different setting (which makes sense) this place is natural.
Thanks a lot again, I think this module should get out of the sandbox and become normally available.
Milos
Comment #9
NWOM CreditAttribution: NWOM commentedSetting to Needs Review, since a patch is attached. I haven't tested it myself yet.