Copied to clipboard

Flag this post as spam?

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

  • Rik Helsen 670 posts 873 karma points
    Sep 14, 2010 @ 11:12
    Rik Helsen

    How do i check if a crop has been created in XSLT?

    We all know about the "crops don't exist untill you publish the image for a second time" issue, but is there a way for me to check in XSLT if the crop has in fact been created, so i can have an ImageGen fallback?

    This way if content editors forget to save the image a second time, at least i can fallback on Imagegen to create some kind of image...

    Kind regards,

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 14, 2010 @ 11:43
    Dirk De Grave

    I'm pretty sure the crops are saved as an xml fragment, so you should be able to check for count(/crops/crop) or something similar (Don't know the syntax by heart, but it'll be pretty close to that)


    Hope this helps.



  • Rik Helsen 670 posts 873 karma points
    Sep 28, 2010 @ 10:47
    Rik Helsen

    Thanks Dirk!

Please Sign in or register to post replies

Write your reply to: