Questions tagged [expiration]
The expiration tag has no usage guidance.
10
questions
1
vote
1
answer
46
views
Remove expiration date field from section / entry type
By default, every entry has an expiration date field allowing the editor to expire an entry. I'm currently working on an application with some sections where expiring an entry doesn't make much sense ...
1
vote
0
answers
131
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
1
answer
95
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
2
answers
190
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
1
answer
129
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
1
answer
52
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
1
answer
401
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
1
answer
296
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
3
answers
1k
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
3
answers
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 ...