Search
Other Conditional Content questions
Forum

Combinations

Peter van Westen's Avatar Peter van Westen ADMIN
Ok, great 🙂
The new feature will be included in the next release.
Please post a rating at the Joomla! Extensions Directory
worech's Avatar worech
Ok, now I am completly confused..

Am I (now, using the dev version) able to set up the condition under condition? I mean one of the first posts

"{show condition="It's Thursday"}
Today we have a rest day, come tomorrow
{show-else condition="It's Monday to Wednesday"}
{article article="The Monday to Wednesday Menu"}[text]{/article}
{show-else}
{article article="The Friday to Sunday Menu"}[text]{/article}
{/show}"

with an adjustment like
{show days="thursday"}
Today we have a rest day, come tomorrow
{show-else days="monday,tuesday"}
Code for Mon - wed text
{show-else}
Code for Fri - to sun text
{/show}

or no?
Thank you and best regards.
Peter van Westen's Avatar Peter van Westen ADMIN
You can place it all in one module/content if you want.

So yes, you can do:
{show days="thursday"}
   Today we have a rest day, come tomorrow
{show-else days="monday,tuesday,wednesday"}
   ...Mon - wed text...
{show-else}
   ...Code for Fri - sun text...
{/show}
If you want to keep the 2 menus in separate articles for easier management, you could use Articles Anywhere in the mix and do:
{show days="thursday"}
   Today we have a rest day, come tomorrow
{show-else days="monday,tuesday,wednesday"}
   {article article="The Monday to Wednesday Menu"}[text]{/article}
{show-else}
   {article article="The Friday to Sunday Menu"}[text]{/article}
{/show}
It's not necessary, but a possibility.

You might also want to use named conditions, instead on the inline days="..." condition.
Also not necessary. But you can if you want.
So instead of using days="monday,tuesday,wednesday", make a condition for those days and call it something like "It's Monday to Wednesday".
Then you can do:
{show condition="It's Thursday"}
   ...
{show-else condition="It's Monday to Wednesday"}
   ...
{show-else}
   ...
{/show}

Or use different names that make sense to you. Maybe do something like:
[code]{show condition="Pasta Days"}
   ...
{show-else condition="Pizza Days"}
   ...
{show-else}
   Today we have a rest day, come tomorrow.
{/show}
[/code]
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription