Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Conditional text supporting OR operator

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
23 hours 40 minutes ago #180335 by Patrick
Hi Tuan

It would be great if conditional text would support OR operator. This way instead of writing a text multiple times once would be enough:

Long:
{ebShowText [MAIN_CATEGORY_ID]=1}Here comes a long text.{/ebShowText}{ebShowText [MAIN_CATEGORY_ID]=2}Here comes a long text.{/ebShowText}{ebShowText [MAIN_CATEGORY_ID]=3}Here comes a long text.{/ebShowText}{ebShowText [MAIN_CATEGORY_ID]=4}Here comes a long text.{/ebShowText}

Short:
{ebShowText [MAIN_CATEGORY_ID]=1OR=2OR=3OR=4}Here comes a long text.{/ebShowText}

Best regrads
Patrick

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc