Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [expiration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
65 views

Viewing expired entries and live one with the same template

Working with Craft 2, I have a channel for events that each entry has an expiration date. Live entries should show the upcoming event info and expired entries should show archive info. I have ...
1
vote
1answer
36 views

Is there an event that is triggered when an entry expires?

I would like to update an entry after it has expired via a plugin. Is there an event that I can use to do this when using Craft 2?
2
votes
2answers
158 views

Has anyone come up with a solution where matrix blocks can be scheduled and expire?

To replace my current CMS I will need to have parts of pages change without the whole page change. As I'm looking at using matrix blocks for building pages, it would seem to be easy for an editor to ...
2
votes
1answer
100 views

Sending an email before entry expires

Entries in a particular section have expiration dates of up to one year away. The client would like to receive a notification email two weeks before this expiration date is reached. Here's a bonus ...
1
vote
1answer
50 views

Invalidate cache from two channel expiry dates

I have two channels: A event and a news channel which I want the cache to expire based on both their expiry Date. {% set newsDate = craft.entries.section('newsDate').order('expiryDate asc').first() %}...
0
votes
1answer
327 views

Is it possible to extend the lifetime of the CraftSessionId cookie?

I would like to extend the lifetime of the CraftSessionId cookie. Is this possible and if so, where can I change the value? Thank you for your time.
2
votes
1answer
206 views

Dates Expiring By Custom Field date_modify

Can I somehow set the expiration date of an entry based on a custom-field. I ask this because I don't want the site-owner to have to manually set the expiration date (for multiple reasons)but they are ...
2
votes
2answers
650 views

Is there a way to require the Expiration date

I can't find a way for a section (a channel in this case) to require the use to enter an expiration date. I know I could add a new field and require that field, but that would get rid of the default ...
3
votes
3answers
1k views

Expire an entry according to a date field

Ich have a concert entry which I want to expire after the concert is over. How do I do that? I was able to hide past entries like this: {% set present = now|date_modify("+1 day") %} {% for entry ...