Content Template conditional question
-
Hi – apologies if this has been done before. This isn’t a feature request as it’s not really important to me at all but just a question to see if it’s possible with MLA right now.
As far as I understand the way conditions work in content templates is:
(if isset value then display it) else (do something else)
Are there other possibilities/operators with conditionals – e.g.:
(if isset value then return true) else (do something else)
? I was thinking attachment_tag would be ideal for this – to do something like (in my imaginary language):
([+terms:attachment_tag[‘nodate’]+])|([+iptc:DateCreated+])
meaning:
(if tag with name ‘nodate’ is set then return true) else (display iptc:DateCreated)
I guess this opens a whole Pandora’s Box of language possiblities though which really go beyond what might be deemed necessary!
The topic ‘Content Template conditional question’ is closed to new replies.