Developer forum

Forum » Swift » Change order of product assets

Change order of product assets

Caro De Weze
Reply

Hi,

I want to change the order in which the product assets are displayed. In other words I want to show the Packaging_images before the Application_images, e.g. on this page: http://chemicar.cloud.dynamicweb-cms.com/technical-sprays/primer-filler/primer-white-400ml/light-grey. How do I do this?

Caro

image.png

Replies

 
Caro De Weze
Reply

Hi,

I have already noticed that the following code takes care of the sorting: assetsImages = assetsImages.OrderByDescending(x => x.Value.Equals(defaultImage)); in Swift_ProductDetailsImage.cshtml, so I enabled this again.

Caro

 

You must be logged in to post in the forum