Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1347 posts 1608 karma points
    Jun 01, 2011 @ 10:15
    Gordon Saxby
    0

    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?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies