Summary
I’m having super weird problem. I’m using getImagelist to get dates and times for an event with strtotime modifiers example below. everything works fine but when I insert tv with image as an input type [[*eventImage]] anywhere on the same page the getimagelist stops working. If I change the input type to anything else, the getimagelist works fine. If I remove the strtotime modifier the getImageList works.
[[getImageList?
&value=`[[*eventDates]]`
&tpl=`@CODE:[[+edate:strtotime:date=`%d.%m.%Y`]] klo [[+edate:strtotime:date=`%H:%M`]] - [[+edateend:strtotime:date=`%H:%M`]]`
&limit=`0`&where=`{“edate:>=”:"[[getCurrentDate]] "}`]]
Step to reproduce
Create Migx tv and add date input types. then use getImageList to get those dates and use output modifiers on them. Then create an tv with image as a inputype and get the value of that tv on the same page as where the getImageList is.
Observed behavior
If it’s just the getImageList it works as expected. returned value is “01.11.2025 klo 16:00 - 18:00” When you try to get the value of the image tv like so [[*eventImage]] getImageList stops showing any values. If you remove the output modifiers from the getImageList when the image tv call is active the getImageList shows the unmodifed values.
Expected behavior
It should show the image from the tv and the dates formatted from the getImageList.
Tried to circumvent
I tried to make a snippet which would format the dates of the getImageList but ran into another weird problem. I created a snippet used that in the getImageList [[renderDate?&input=[[+edate]]]] . The problem that I faced with this was in the snippet was when using the $input variable in the strtotime function the $converted variable returns 01.01.1970 00:00:00 but if I just return the $input variable to see the it’s value it returns 2025-11-16 11:00:00. If I paste that value into the strtotime the $converted returns 16.11.2025 11:00:00. Why isn’t the $input variable working when used as a variable but works if I just paste the value of it?
$time = strtotime($input);
$converted = date(“d.m.Y H:i:s”, $time);
return $converted
(returns 01.01.1970 00:00:00)
return $input
(returns 2025-11-16 11:00:00)
$time = strtotime(“2025-11-16 11:00:00“);
$converted = date(“d.m.Y H:i:s”, $time);
return $converted
(returns 16.11.2025 11:00:00)
Environment
Using version Modx 3.1.2