I'm working with some rather large image files that will accompany certain products. The files are hosted remotely, and because of their size, would be a great candidate for playing with the new custom fields setup. However, I seem to be having trouble getting them to output when defining the fields and using a foreach.
I've tried numerous things but I just can't seem to get it to work in this fashion. 'prodimgs' has data and outputs with &mvt:prodimgs; but not inside the loop. However, if I remove the comma separated list and leave an empty string, then it will loop through and display every custom field attached to the product.
I have been able to load this in other much longer ways, but this shouldn't require 20 lines to accomplish when 6 will do. Since this won't apply to some products and others won't necessarily have five images, the idea is to check 'prodimgs' for data and then let it loop through and display what is there.
I thought at first something was wrong with my list of codes but then I should get no output at all so I'm rather confused. Any help you can offer would be appreciated.
Thanks,
Tim
Code:
<mvt:item name="customfields" param="Read_Product_Code(l.settings:product:code, 'PRODIMG1, PRODIMG2, PRODIMG3, PRODIMG4, PRODIMG5', l.settings:prodimgs)" /> <mvt:foreach iterator="field" array="prodimgs"> &mvt:field:value;<br/> </mvt:foreach> <hr /> &mvt:prodimgs;
I have been able to load this in other much longer ways, but this shouldn't require 20 lines to accomplish when 6 will do. Since this won't apply to some products and others won't necessarily have five images, the idea is to check 'prodimgs' for data and then let it loop through and display what is there.
I thought at first something was wrong with my list of codes but then I should get no output at all so I'm rather confused. Any help you can offer would be appreciated.
Thanks,
Tim
Comment