Search
Other Conditional Content questions
Forum

Combinations

worech's Avatar worech
Hi,
I am using CC for a restaurant, which is offering certain menu on certain days. So, on Mon, Tue, Wen they are cooking pasta, Fri, Sat, Sun pizza. No problem to set this condition, but how to combine with Thu, when they are off? Did not find the solution.

Any help appreciated.

Thanks.
Peter van Westen's Avatar Peter van Westen ADMIN
I am not sure what you mean with "how to combine with Thu"...
So what do you want to show on Thursdays?
Please post a rating at the Joomla! Extensions Directory
worech's Avatar worech
Hi,

there are three days when the menu is set up to something, three days to something different. One day the restaurant is closed, so on Thu I need to set up different offer like like "Today we have a rest day, come tommorow".

Those three and three days are set, now I need to set up the rest day with a combination with the rest. Hope, I am more clear now..

Thanks a lot.
Peter van Westen's Avatar Peter van Westen ADMIN
Assuming you are on Joomla 4, I would recommend you combine this with Articles Anywhere:
Then you could do this something like:
{show condition="It's Thursday"}
Today we have a rest day, come tomorrow
{show-else}
{article article="The Full Menu"}[text]{/article}
{/show}

Then in the article "The Full Menu" you can place what you have now.

Or have a separate menu for "Mon, Tue, Wed" and for "Fri, Sat, Sun", and do this:
{show 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}
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Hold on...

Please try the latest development version from:
regularlabs.com/development-releases

Again, assuming you are using Joomla 4, you should now be able to do this:
{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}
Please post a rating at the Joomla! Extensions Directory
worech's Avatar worech
Hello,

thanks a lot for a fast support.

I need to set up this rule till this Thu, so a small amount of time..

Being new to CC - I´ve tried this, but di not work:

{show days="thursday"}
Today we have a rest day, come tomorrow
{show-else days="monday,tuesday,wednesday"}
Mon - wed text
{show-else}
Fri - to sun text
{/show}

Is it possible to set up the conditions like this?

Thanks a lot and best regards!
Kristian
Peter van Westen's Avatar Peter van Westen ADMIN
What version of Joomla are you running on?
Please post a rating at the Joomla! Extensions Directory
worech's Avatar worech
4.

Thanks for your time.
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
worech's Avatar worech
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
So where is this module visible on the frontend?
By the looks of it, your website is using Gridbox and the menu (content) is in there. Not in the module.
Please post a rating at the Joomla! Extensions Directory
worech's Avatar worech
The menu on the main page is the module and is shown through Gridbox module app.
Hope I am clear now 🙂
Peter van Westen's Avatar Peter van Westen ADMIN
No, I have no idea how Gridbox works.
But when I open that page in Gridbox, I can see the content (menu) in there, without any {show} tags.

Can you reproduce this issue with normal Joomla content? So taking Gridbox out of the equation?
Please post a rating at the Joomla! Extensions Directory
worech's Avatar worech
Yes, but it is not needed to do anything with Gridbox. The module is just inserted there.
I´ve copied the code to an article, you can find it there.

Thanks.
Peter van Westen's Avatar Peter van Westen ADMIN
Well, you haven't installed the development of Conditional Content yet...
Please post a rating at the Joomla! Extensions Directory
worech's Avatar worech
Should be there.
Peter van Westen's Avatar Peter van Westen ADMIN
That is the Conditions component.
That is not the Conditional Content extension (plugin) itself.
You have not installed the development version of Conditional Content yet.
Please download it from here and install it:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Correct. You have the stable version installed. As described earlier, the ability to use attributes in the {show-else} tag is in the development version.
So you will need to install that DEV version to see if it works.
Please post a rating at the Joomla! Extensions Directory
worech's Avatar worech
Got it! Sorry for not understanding, now it is there.
Thank you.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription