Hi Guys.
I am wondering if you can find if something is IN something else with standard EE conditionals.
For example:
{if 'kubik' IN '{custom_field}'}blah{if:else}foo{/if}I don’t want it to be equal to the whole thing I just want to find if that part is in it.
Hope that makes sense. Not the best at explaining sometimes.
Thanks. =)
p.s. I am using EE2.8.1
Hi Guys. I am wondering if you can find if something is IN something else with standard EE conditionals. For example:I don’t want it to be equal to the whole thing I just want to find if that part is in it.{if 'kubik' IN '{custom_field}'}blah{if:else}foo{/if}
Yes you can! Though you’ll need to upgrade to at least EE 2.9. Try something like this:
{if custom_field *= "kubik"}Upgrade to EE 2.10.x{if:else}Lose out{/if}Here’s the EllisLab post about the new conditionals: New Conditionals Parser in 2.9
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.