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...
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)
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,
Rik
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.
Regards,
/Dirk
Thanks Dirk!
is working on a reply...