Image in feed capture with js match
Posted: Tue Sep 20, 2016 2:05 pm
Hi, this topic is closed. But how do I capture this in if function if no image was foud.
_______________________Oleg Danchenkov (Employee) over 3 years ago
You should add mapping from rss-channel-item-encoded to image-Asset parameter and add this JS code to mapping
Code: Select all
var img = value.match(/]*/)[0];
var imgSrc = img.match(/ src=["']([^"']+)["']/)[1];
return imgSrc;