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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | import-multiple-bundles-1796590.patch | 487 bytes | howto |
Comments
Comment #1
howto commentedPost a patch
Comment #2
howto commentedSorry, the patch #1 does not work and it affect many other processors. I'm finding a better solution.
Does any one have a solution?
Comment #3
twistor commentedI took a stab at something like this once. I did not like my approach, however.
http://drupal.org/sandbox/twistor/1135898
Comment #4
bluegeek9 commentedUnfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.