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