I'm facing an issue in the following code
<div class="panel-icon {f:if(condition: '{0:panel.id}=={0:123}', then: 'icon-update', else: 'icon-{icon}')}"></div>
Currently the above code check if the panel.id
equals to 123
then apply the icon-update
to css class else whatever the icon being passed through {icon}
it works fine, but my requirement is I have 3 different panel.id
and if any of those panel id's have passed, then the icon-update
should be applied.
These are the approches I tried, but they're not working for me
Approach 1
<div class="panel-icon {f:if(condition: '{0:panel.id}=={0:123,0:456,0:789}', then: 'icon-update', else: 'icon-{icon}')}"></div>
Approach 2
<div class="panel-icon {f:if(condition: '{0:panel.id, 1:panel.id, 2:panel.id}=={0:123, 1:456, 2:789}', then: 'icon-update', else: 'icon-{icon}')}"></div>
I was tyring to find a clean solution for this, but still no luck. Any typo3 expert there to fix this issue?