Catalog Item
The catalog_item
object has the following attributes:
catalog_item.image
Returns an image attachment of a catalog_item. Use the attachment_url filter to link to the image on Yoolkâs Content Delivery Network. [Optional]
Input
{% for catalog_item in listing.catalog_items %}
{% if catalog_item.image %}
{{ catalog_item | attachment_url: 'medium' | image_tag }}
{% endfor %}
{% endfor %}
Output
<img src="http://s-yoolk-images1.yoolk.com/kh/catalog_item_images/medium/1367097277/1250047?1367097277" />
Parameters: image sizes
styles | size |
---|---|
small | 196 x auto |
medium | 322 x auto |
large | 994 x auto |