I want to import many nodes of bundle: page, article. In setting form for MyFeedsProcessor, at field "bundle_name" (config['bundle_name']) user can select one bundle (page or article) or select "All bundle". With this option user do not specific bundle but the bundle name is specified in each row of csv file (or other format).
So the csv file like this:

Title | Type | Description
Node 1 | article | Node 1 description
Node 2 | page | Node 2 description

To do this, we must pass current parsed item to method newEntity() of class "FeedsProcessor". In method newEntity(), i simply create new entity of that bundle.

CommentFileSizeAuthor
#1 import-multiple-bundles-1796590.patch487 byteshowto

Comments

howto’s picture

StatusFileSize
new487 bytes

Post a patch

howto’s picture

Sorry, the patch #1 does not work and it affect many other processors. I'm finding a better solution.
Does any one have a solution?

twistor’s picture

I took a stab at something like this once. I did not like my approach, however.

http://drupal.org/sandbox/twistor/1135898

bluegeek9’s picture

Issue summary: View changes
Status: Active » Closed (outdated)
//www.flaticon.com/free-icons/thank-you Thank you for your contribution!

Unfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.