December 4, 2014 05:12 by
Peter
Importing text content utilizing Drupal feeds module is simple. Importing images utilizing feeds is simple as well however it needs a little function and it's not as straightforward as importing text content.
Initially you need to copy image files in your server, you are able to copy all of these anywhere within your web site directory, however I like copying it to public files directory (sites/default/files). When you've copied the images, you have to produce a CSV importer. Within which CSV importer we'll specify the trail from the image. Look into the feed importer :
Product images is the important subject during this feed importer. Product images is an image field. Right listed below is that the CSV importer :
"SKU";"Title";"Description";"Brief Description";"Taxonomy Terms";"Product Selection";"Product Images"
"IMPORTED-PRODUCT-1";"Imported product display one";"This is an imported product one. This is an imported product one.";"This is an imported product one";"Clothing";"IMPORTED-PRODUCT-1";http://mysite.local/sites/default/files/image1.jpg
When you have already uploaded the image towards the server then you are able to import data by using the CSV. This was concerning importing images utilizing feeds. Suppose, the field accepts multiple images and you would like to import multiple images by using the importer, then you are able to use feeds tamper module for that. Look into the feeds tamper configuration to the images field:
You are able to alter the exploding character to anything, however be certain the character is unique and it is not present inside the URL of image. Right listed below is that the CSV importer for importing multiple images :
"SKU";"Title";"Description";"Brief Description";"Taxonomy Terms";"Product Selection";"Product Images"
"IMPORTED-PRODUCT-1";"Imported product display one";"This is an imported product one. This is an imported product one.";"This is an imported product one";"Clothing~Jackets";"IMPORTED-PRODUCT-1";"http://mysite.local/sites/default/files/compressed/image1.jpg~http://mysite.local/sites/default/files/compressed/image2.jpg"