I need to find all images in a specific media library folder that match a pattern. E.g. there might be 4 images named -
c654a c654b c654c
which I need select based on the criteria "c654"
Basically, I have a product code (e.g. c654) and need to select all related images.
I tried "umbraco.library:LastIndexOf(./umbracoFile, '/c654') > 0" in an IF test inside a loop which works, but it doesn't feel like the best solution ... is there a better way to do this?
Pattern matching to select images
I need to find all images in a specific media library folder that match a pattern. E.g. there might be 4 images named -
c654a
c654b
c654c
which I need select based on the criteria "c654"
Basically, I have a product code (e.g. c654) and need to select all related images.
I tried "umbraco.library:LastIndexOf(./umbracoFile, '/c654') > 0" in an IF test inside a loop which works, but it doesn't feel like the best solution ... is there a better way to do this?
is working on a reply...