Please Log in or Create an account to join the conversation.
xengent wrote: I would like to show content within modules and articles that is based on the time of day and specifically the day of the week (monday, tuesday....).
I would like to use this to show/hide content based on our hours of operation, e.g. having an "Open" and "Closed" sign to show when we are available for support.
Is this possible using CB IF statements? e.g. "if day of the week is Monday and time range is between 9AM & 5PM, show this content"?
Alternatively I looked at trying to show an entire module via the native Joomla publish date feature, but it doesn't seem to be capable of enabling/disabling recurring publish dates, nor is it able to select by day of week.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
xengent wrote: Close, but not sure how to specify a day of the week. The article talks about setting a "days difference" from a specific date set, using "greater than" / "equal to".
The only way I would see this working for my use case is by setting 7 dates (any seven consecutive days in the past, one for each day of the week), and then having the statement say "if now is a multiple of 7" for each of those statements, that way the content will be displayed every seven days. For example I would set the date for Tuesday December 15, 2015, and then from that date, any date that is a multiple of 7 would show that content (hence showing it every Tuesday).
Will this work? If so, how do I write the if statement to be a multiple of 7?
Please Log in or Create an account to join the conversation.