Conditional Content - template
Posted: Fri Mar 13, 2015 3:16 pm
Can I define If else condition in my template module?
If I create a text module in my template and in this text module I want to insert if else condition for e.g. If group1 than link1 elseif group2 than link2 else default link.
Here group1, group2 are the values in my db table column name group.
I donot want to create 3 content block in text module .
How can I write If - else condition for such purpose?
Thanks a lot
If I create a text module in my template and in this text module I want to insert if else condition for e.g. If group1 than link1 elseif group2 than link2 else default link.
Here group1, group2 are the values in my db table column name group.
I donot want to create 3 content block in text module .
How can I write If - else condition for such purpose?
Thanks a lot