Streaming live at 10am (PST)

(SOLVED) Display information based on day of the week


#1

Hi guys!

This is my very first post, but I’ve been reading a lot here, while doing my projects (around 5 customer websites).

I guess the post title is pretty descriptive. A customer of mine has things like “Wednesday is burger day” and we thought it’d be nice to show that automatically.

The only way to do this I found out so far, is to make a collection with an item for each of these promotional days (and opening times as well btw) for the next 10 years in Excel and filter them out by day on the website, but I don’t find that very professional.

Any other ideas?

Regards to this awesome community from Bavaria, Germany!

Tobi


#2

Hi @Tobi_Huber

Welcome to the forums!

Faster than lightning…almost…this might get you on the right tracks (cloneable project in the thread too)


#3

That was fast! I was hoping there’s a solution without custom code. But I will try to fiddle around with this http://time-based-reveal.webflow.io/ project.

Thank you!


#4

Hi, @Tobi_Huber!

Could you give a little bit more details? Ho many different promotional days your client has? I might have some idea about how to show/hide them automatically without messing up with code

Cheers,
Anna


#5

Okay, I will leave my idea here, incase it might be useful :slight_smile:

  1. Create a collection with dates of all Wednesdays (or whatever days it should be)

  2. Add items-days in that collection (in my example I added only current month)

  3. Add collection list on the page and wrap all content in the item with the div (I guess it would be promotional text and image or whatever it is)
    19%20PM

  4. Set conditional visibility on that div


    08%20PM

  5. Now it will show ONLY that promotion that has current date and will not show anything if current date in not the day of the week that you need.

:slight_smile: Let me know if this idea came even close to solve your problem.

Best,
Anna


#6

Dear @sabanna, thank you for your contribution.

I was well aware of this approach. As mentioned in my initial posting, this would require me to create a collection with items for each day, for the years ahead. Thousands. I don’t find that satisfying, even though it might work. Thank you though! :blush:


#7

Hey @Tobi_Huber did you get the time-based-reveal project code to work for you? That is my project that I created to share when I had a project just like yours that required the same content to appear on a certain day of the week every week. Let me know if you have any questions about it.


#8

Hi Matthew. Thanks for reaching out. Yes, your project helped me a lot, but I had to alter it a bit to work with a collection, so my customers can edit the info for each day in a more convenient way.

http://karocastle.webflow.io/
https://preview.webflow.com/preview/karocastle?preview=55965b9ae0632a168c80a2511093f1ff

Thanks for that. Great solution (for something that would be nice as a built-in feature in Webflow)!


#9

Very good. Glad you found it useful.