Re: Pulling Product Image Custom Fields (Image Machine) within a Toolkit subcat Funct
Are you looking for an array of all the generated images for a specific image?
For example, if you have the foreach
<mvt:foreach iterator="image" array="toolkitadditionalimages">
<img src="&mvt:global:imageroot;&mvte:image:image:image ;">
</mvt:foreach>
Assume I create a new function, you would change line two to
<mvt:item name="toolkit" param="generatedimages|l.all_settings:image:image: id" />
which would generate a subarray like
<mvt:foreach iterator="generatedimage" array="generatedimages">
<img src="&mvt:global:imageroot;&mvte:image:image:image ;">
</foreach>
that could be used inside the main foreach loop.
That would list all of the images for that main image. So then how would you know which one to display?
Are you looking for an array of all the generated images for a specific image?
For example, if you have the foreach
<mvt:foreach iterator="image" array="toolkitadditionalimages">
<img src="&mvt:global:imageroot;&mvte:image:image:image ;">
</mvt:foreach>
Assume I create a new function, you would change line two to
<mvt:item name="toolkit" param="generatedimages|l.all_settings:image:image: id" />
which would generate a subarray like
<mvt:foreach iterator="generatedimage" array="generatedimages">
<img src="&mvt:global:imageroot;&mvte:image:image:image ;">
</foreach>
that could be used inside the main foreach loop.
That would list all of the images for that main image. So then how would you know which one to display?
Comment