Hi,

Am I missing something or it's only possible to tamper standalone importers?

Looking at the module's code, there is some form_alter() only for feeds forms, but not feeds nodes (nodes attached to an importer and producing other nodes) ... in the other hand, the comment #2 on this issue: #952062: Feeds Tamper not working on Postgresql makes me think that it's or it was possible...

Any help appreciated,
Thanks

Comments

alexmoreno’s picture

im interested on this, exploding some fields in multiple nodes

manu manu’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev
Component: User interface » Code
Category: support » feature

Hi urwen,

Actually this feature will not explode fields into nodes, it will allow you to tamper feed nodes like standalone feeds importers.

I managed to implement this, but I lack time to format a proper patch.

twistor’s picture

Feeds Tamper will work on any feed that Feeds creates. It is configured per importer, so any feed created will get the same modifications.

twistor’s picture

#2, Creating new nodes from a single field is not something it currently does. I might be confused, but these seem like very different issues.

manu manu’s picture

Hi Twistor,

It is configured per importer, so any feed created will get the same modifications.

Indeed. Standalone importers are only a part of Feeds features. The idea is to be able to configure it by feed node also.

Here is my use case: A product importer is attached to product feed nodes, creating product nodes. Thats because the feed url is proper to each product feed. The goal is to be able to:

  • Tamper the product importer, say capitalize the product node title. This will apply to all product feed nodes
  • Tamper individually product feed nodes. eg some feeds may need an utf8 tamper plugin.

Importer level tampering should be applied before feed node level importer.

I've done some several modifications to Feeds Tamper to achieve this, bringing it closer to Feeds architecture: importers are identified by a composite key (importer_id + feed_node_id, if feed_node_id == 0 then it's a standalone importer).

Basically these mods adds a $feed_node_id on most Tamper helpers, a new column feed_node_id and a Tamper tab on feed nodes:

function feeds_tamper_save_instance($instance, $feed_nid = 0) {}
...
function feeds_tamper_load_by_importer($importer, $disabled = FALSE, $feed_nid = 0) {}
...
ctools_export_load_object('feeds_tamper', 'conditions', array('importer' => $importer->id, 'feed_nid' => $feed_nid));

I'm willing to submit a patch with this mods, and may speed up this if you or someone is interested.

alexmoreno’s picture

manu manu, could i help you in this? I'm willing to contribute more "seriously" on Drupal and patching modules could be a good start :-)

twistor’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

I actually started this project by making it configurable per feed, and it was a nightmare.

It's not worth the complexity, plus it won't work with Features.