Streaming live at 10am (PST)

Show cms item the right day


#1

Hoping that someone code savvy can help me here.

I have a collection for a lunch menu that changes every week, it stretches from monday to friday. On the home page I want to show the current day offer.
If the current day is monday - show monday dish offer.

The collection is built up with 5 rich text elements, one for each day.

Any help is appreciated :grinning:


#2

You might need to use custom code.

Here's a similar topic, but without cms:

The trick to get the current day is new Date().getDay()


#3

Thanks @samliew

I'm trying to figure out how I can show only one cms field from a cms item on a static page.


#4