This tip may be related to a resolved thread.
stinhambo asked
Is there a conditional I can use to check if the current entry has expired?
I am using a detail template for all current and past entries. I have an “Email a Friend” link at the bottom but I only want this to show if the entry has not expired yet.
And Sue Crocker was spot on whene saying
I don’t have a complete answer for you, just something to start out with..
{current_time} versus {expiration_date}
Mark Bowen came with a PHP solution but I tried it with EE tags and it works fine too. It’s simpler to write it that way, at least for me.
{if current_time > expiration_date}Expired data{/if}I am using this on a tour shedule to style the past events with a different colour. (by assigning it a class=“expired” and styling in CSS)
{exp:weblog:entries weblog="tour_events" show_future_entries="yes" show_expired="yes" status="open|closed|cancelled"}
{if current_time > expiration_date}
{title}
{if:else}
{title}
{/if}
{/exp:weblog:entries}