Closed (fixed)
Project:
Feeds Tamper
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2011 at 17:12 UTC
Updated:
8 Dec 2014 at 23:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
twistor commentedI can see how this would be desired, but not sure if it's expected. Maybe we can add a checkbox to the clone form asking if you'd like to clone the plugins?
Other opinions?
Comment #2
franzYes, it could be optional, as long as it's easy. I just think it's expected in the case you want to build a very similar feeds importer with similar settings.
I haven't tried, but I think exporting also needs this (even if optional), specially for deploying.
Comment #3
lodey commentedI've just had this issue. To get around it for now I am using Features - but this is still a real big pain to be honest.
I packaged up my feed importer and its associated tamper plugins into a single feature. I then copied the feature module and all files to a feature naming convention for the cloned version. You then need to go through all the files and changed all the functions and text to cover your new feed..... This is a real pain - but still quicker than rebuilding all the tamper plugins if you have quite a few.
It would be great if this functionality could be included into the tamper module - but in the meantime this work around is fine for me.
Comment #4
franzEven when using features, you have to manually select everything. Then you add a couple more tampers, you can't forget that when recreating the feature you have to go back and add them all again. They should work the same way as a Content Type & Fields: Fields get added automatically to the feature.
Comment #5
geefin commentedWhile awaiting for patch/module/etc... I cloned the importer, then into the database here's the sql :-
Comment #6
aouko commentedFor everyone's information, there's a new module that provides cloning for Feeds Tamper: http://drupal.org/sandbox/mamanerd/1906440
Comment #7
mamanerd commentedHey everyone, here's a patch that will allow you to clone tamper plugins when cloning a feeds importer. I originally made it into a separate module, but realized that was not really necessary. Let me know if you have any issues!
Comment #8
mamanerd commentedSetting this to "needs review" so that the patch gets reviewed.
Comment #10
mamanerd commentedAttempting to submit patch again..
Comment #12
mamanerd commentedCan someone help me figure out why my patch keeps failing? It applies cleanly when I try to apply it to the 7.x-1.x branch locally. Any ideas?
Comment #13
perkeThanks for the info, module in #6 works flawlessly!
phew, lots of time saved
Comment #14
drclaw commented@mamanerd You have to change the version on the issue so the testbot knows which version to apply the patch to.
Comment #15
drclaw commented#10: feeds_tamper-clone_tamper_plugins-1346936-10.patch queued for re-testing.
Comment #16
drclaw commentedPatch has error:
Fatal error: Call to undefined function feeds_tamper_clone_clone_tamper_plugins() in /home/chris/www/taymor/includes/form.inc on line 1464RE-roll attached.
Comment #17
muschpusch commentedOk #16 works as designed and is pretty useful! Code looks good too
Comment #18
geek-merlinI can also confirm #16 works as announced. Code looks simple and clean.
I consider this feature is so basic and expected that i dare to ries priority. Feel fre to rearrange that.
Comment #19
twistor commentedThis is awesome!
This can just use $form['#from_importer']->id.
So then $tamper_plugins can be undefined?
Need different names for these variables.
Why call feeds_tamper_new_instance() then overwrite it with the old instance. We should just clone $old_instance.
stre_replace() isn't safe to use here. Should use explode('-', $id, 2).
Isn't there a constant for this?
Should disabled plugins stay disabled?
Comment #20
maxplus commentedHi,
#16 works for me with the current stable version 7.x-1.0.
Thanks,
great feature that makes life more easy!
Comment #21
thomas.krooshof.bc commented#16 works with latest dev version 7.x-1.x-dev. Thanks!
Comment #23
twistor commentedComment #24
twistor commentedAlso, check this out #2381487: Features: Automatically add Tamper plugins when a Feed Importer is selected.