I put a snippet into the imageTpl in mgGetImages-snippet. It takes two custom fields and works well, except that I always have to clean the cache manually that a change become effective.
Background:
I would like to change a image from a moregallery depending on the time of the day. Created to custom fields (from-time and to-time). the snippet takes these inputs and compares to the current time and returns “true” or “false” (to show or not to show an image).
Tried to call all parts uncached, but it didn’t work. Still have to clean the cache manually.