With Plone 3.3.5, I have the classic contents of a folder, which is a list of events sorted by date (reverse). I show each item one by one. I would like to display a special message when the events are no longer in the future, but are past events.
Now I have this:
<span tal:define="endDate item/end;
" tal:condition="python: endDate.isPast()">Past event<br />
</span>
But I would like to display only one message, and not for all past events ...
I tried to create a Python variable but couldn't do it (mess with undeclared variable).
thanks for the help
PS: I am not familiar with the Plone template language ...
source
share