Feeds - import multiple images

Error message

  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; GeSHi has a deprecated constructor in require_once() (line 818 of /home/xenyomed/public_html/sites/all/modules/libraries/libraries.module).
  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; ctools_context has a deprecated constructor in require_once() (line 127 of /home/xenyomed/public_html/sites/all/modules/ctools/ctools.module).
  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; ctools_context_required has a deprecated constructor in require_once() (line 127 of /home/xenyomed/public_html/sites/all/modules/ctools/ctools.module).
  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; ctools_context_optional has a deprecated constructor in require_once() (line 127 of /home/xenyomed/public_html/sites/all/modules/ctools/ctools.module).
  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _menu_load_objects() (line 579 of /home/xenyomed/public_html/includes/menu.inc).

WE HAVE MOVED!

Please visit our new Drupal Website at https://www.xenyo.com.

Use Feeds , Feeds Tamper to import field with multiple values
use sql to group multiple value with separator "|"
multiple values field will look like this
xxx|xxx|xxx
SELECT p.program_id , GROUP_CONCAT(i.img_url SEPARATOR '|') as uri , GROUP_CONCAT(i.img_caption SEPARATOR '|') as title FROM event as p left join images as i on p.program_id = i.ref_id group by p.event_id order by p.event_id limit 0,2000
 
Feed Tamper > set the field with multiple values with "explode" rule with "|" as separator.
 
to import image with title description , alt description
csv will look like this
img path           img title           img alt
xxx|xxx|xxx      xxx|xxx|xxx     xxx|xxx|xxx
Help Share this Article