Closed (works as designed)
Project:
Feed Import
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2012 at 23:03 UTC
Updated:
28 Jan 2014 at 17:01 UTC
Jump to comment: Most recent
Comments
Comment #1
Sorin Sarca commentedYou may now use in your filter function FeedImport::$current object which is a reference to current importing item (just added it to dev).
I don't know what you want to do here.
You want to use some info from previous processed items? If so, this is somehow not possible because if you have a huge feed previous items will be deleted after save to free memory.
Please use an example so we can find a solution.
Comment #2
rdlang commentedI think it is fine as is, just am not sure how to use it?
Can you give an example?
Comment #3
Sorin Sarca commentedLet's assume that we already know the text and url and we want to create a link.
Comment #4
Sorin Sarca commentedComment #5
q2_faith commentedI have field "Link", and two elements 'url' and 'title'(in xml two strings). how I can use FeedImport::$current?
Comment #6
q2_faith commentedComment #7
Sorin Sarca commentedThere is a simple example in #3 --a function used as filter. You cannot use FeedImport::$current in UI.
Assuming that Link field has two columns: "text" & "href" and you already extracted those values in your current item, you can write a filter function which you'll use in UI.
Anyway, please give me more info about what you want to do (so I can help you).
Comment #8
q2_faith commentedI have field link provided by module http://drupal.org/project/link
and has the following structure
field_post_link array(
und array(
0 array(
url => http://blogurl.com,
title => blog name)))
in xml files I has following structure
how I can import "title" and "url" together?
sorry for my English)
Comment #9
Sorin Sarca commentedxpath sould be: blogName | blogUrl