calvinlau89
(Calvin Lau Kai Mun)
September 19, 2018, 8:38am
1
Hi.
I am working on a project and there’re a few requirements that i’m not sure if Webflow could achieve.
Single hosting with multiple domains. Each domain with each webpage.
Auto unpublish a collection item/page after expiry date.
Redirect a page automatically after a certain duration.
Anyone able to assist?
Thanks.
1 Like
calvinlau89
(Calvin Lau Kai Mun)
September 19, 2018, 12:02pm
3
vincent
(Vincent Bidaux)
September 19, 2018, 3:07pm
4
Sure,
First you need to add an Expiration date field, in the form of a date field.
http://vincent.polenordstudio.fr/snap/Webflow_-_Record_shop__CMS_tutorial_2018-09-19_17-01-57.png
Then declare some expiration dates (let’s put yesterday’s date for one item).
http://vincent.polenordstudio.fr/snap/Webflow_-_Record_shop__CMS_tutorial_2018-09-19_17-03-49.png
Also, all items need to have expiration dates set, for this filter to work. So let’s set dates in the future for all the other items.
http://vincent.polenordstudio.fr/snap/Webflow_-_Record_shop__CMS_tutorial_2018-09-19_17-06-20.png
Now select the collection list and set a filter on Expiration date, that says “From today to 999 days in the future”.
http://vincent.polenordstudio.fr/snap/Webflow_-_Record_shop__CMS_tutorial_2018-09-19_17-07-06.png
So now the list only shows items with a date equal to today or later.
3 Likes
calvinlau89
(Calvin Lau Kai Mun)
September 20, 2018, 3:12am
5
Cool! That’s very helpful. But what if I want to expired a collection page instead?
@vincent question: is there a way to filter not just by date, but also by time? For example, if I wanted a specific CMS item to filter out after a certain time of the day?
vincent
(Vincent Bidaux)
April 2, 2021, 11:23am
7
Date field doesn’t do time easily.
For your time filtering:
Add a # field (numerical)
Set the time inside of it like 730, 1500 (for 7:30 AM and 3PM)
Then filter like this:
Here I have filtered out all the items that I had set to 1500