2021-06-05, 10:10
From one of my widgets I want to be able to start a slidshow of all the images in the widget. So is there a reliable way to check if a list item is an image/picture?
I know I can use ListItem.FileExtension but then I'd need to check every possible extension and that seems clunky, you can guarantee I'll miss one that somebody uses
EDIT:-
Typical, just after posting I figure it out, ListItem.PicturePath is only set if the list litem is.... well a picture
I know I can use ListItem.FileExtension but then I'd need to check every possible extension and that seems clunky, you can guarantee I'll miss one that somebody uses
EDIT:-
Typical, just after posting I figure it out, ListItem.PicturePath is only set if the list litem is.... well a picture