ZenphotoCMS Forum
determining a video in image loop - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: determining a video in image loop (/thread-6493.html)



determining a video in image loop - gjr - 2010-01-23

Hi,
Do you all know a way to determine if the current image in the image while loop (album context) is a video?

Like:
`

while:

if video {do this} else {do this}

`

Thanks in advance!




determining a video in image loop - sbillard - 2010-01-23

how about isImageVideo()?

Remember, all our functions are documented in the user guide. Judicious searching of those web pages will give you quicker response than the forum, I think.




determining a video in image loop - gjr - 2010-01-23

Thanks, I usually do find what I need in the function guide or pdf docs, that one slipped by me...




determining a video in image loop - acrylian - 2010-01-23

In case it is unknown: The easiest way to search the functions guide is to click on "all elements" on the top right and then use the browser page search. I guess it might be a good idea that I add this note to the doc when regenerating it the next time.

Additionally also Zenpage has something similar to check within the news loop if in CombiNews mode: is_NewsType($type).