What i put in data selector? source:??

Comments

eloivaque’s picture

Subscribe

eloivaque’s picture

Hi

I create this code in feeds_rules.rules.inc and work!

function feeds_rules_entity_property_info_alter(&$info) {
  $properties = &$info['node']['properties'];

  $properties['feed'] = array(
    'label' => t("Feed"), 
    'type' => 'node',
    'description' => t("Feed info"), 
    'getter callback' => 'entity_property_verbatim_get',
    'schema field' => 'feed_nid',
  );
}
derhasi’s picture

Status: Active » Postponed (maintainer needs more info)

I guess I do not understand where your problem is. Can you please provide additonal information on what you tried to do?

cristinam-1’s picture

Hi,
The goal is after importing feeds save some words of the content of feeds in taxonomy fields, like the module autotag, it's possible with this module?
I create a new rule with react on event "After importing feed".
After I add a condition "Content is of type" and now I need a data selector, but I don't know what i put in this field?
Thanks,

derhasi’s picture

At the moment, the "After importing feed" event only serves the "Feeds Source". This only provides "id" (the machine readable name) and "imported" (for the time the feeds source was imported), but at the moment, there is no information about the items, that were imported available in rules.
The "after importing feed" was created by me, to serve as a general cleanup event. Feeds itself now provides an event too: @see #1005128: Rules integration & enable modules to customize imports.

cristinam, for your use case, I guess it was best you would trigger the "Node: After saving new content" event. Because this directly acts on the node being saved.