Home ›
Using Views DataSource and Feeds to pull content from one site to another... with multiple imagesUsing Views DataSource and Feeds to pull content from one site to another... with multiple images
Submitted by Benjamin Melançon on June 5, 2012 - 12:09pm
Searched words:
multivalue field import with feeds
Disclaimer: This is a should-be-deprecated approach, both Views DataSource and Feeds can be replaced with better options, such as Services or RestWS to Rules and Rules XPath Parser. But this approach basically works now.
On the source site.
Making Views Datasource Output multiple values for an image
drush dl image_url_formatter
drush -y en image_url_formatter
Configure the View to use it for the desired image field ("Image URL" instead of "Image").
/admin/structure/views/view/yourview_xml/edit
Seems to be an arbitrary hard-coded limit on 8 values in Views Datasource.
Making Feeds accept a multiple value field
drush dl feeds_tamper
drush -y en feeds_tamper feeds_tamper_ui
admin/structure/feeds/tamper/list/gbl_importer
xpathparser:7 -> Your Field with Multiple Images
Add plugin:
Explode
Leave at default setting of comma.
More like this
- Pulling structured data from some web sites to another with RDFa
- Use Drush to sync files from one site to another
- Exclude the results of a one-node view from another view (the Featured Feature problem)
- Remove the main content title from the front page of the site
- Use Drush to sync the database from one site to another


Comments
Post new comment