Developer forum

Forum » Development » Product i.GetLoop("Details") in product catalog?

Product i.GetLoop("Details") in product catalog?

Dmitrij Jazel
Reply

Hi Guys,

Under product template tags you have "Details" loop - available while in Product Details - you have additional product images available from Product Details. All is OK there.

But when you are in Product List - That loop (Details) is not available per Product?

is it just me, or is that on purpose?

 

/Dmitrij


Replies

 
Nicolai Høeg Pedersen
Reply

That is by purpose - and to avoid performance issues.

 
Martin Grønbekk Moen
Reply

So there is no way to get extra images in product lists?

 
Nicolai Høeg Pedersen
Reply

Currently not. You can always name your images in a pattern that can be implemented. You can also do some ninja tricks with Razor.

In 8.7 you can specify patterns like "image_{productid}_*_small.jpg" that will give you a loop.

Nicolai

 
Martin Grønbekk Moen
Reply

Ok, thanks.
Can that asterix (*) also be used in the extension, like "{productid}.*"?

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Yes, you can basically do what is possible with GetFiles method in .NET: https://msdn.microsoft.com/en-us/library/wz42302f(v=vs.110).aspx

Votes for this answer: 1

 

You must be logged in to post in the forum