ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Expiration Addons?

February 14, 2011 6:59pm

Subscribe [2]
  • #1 / Feb 14, 2011 6:59pm

    ewn

    100 posts

    I’ve run into a situation where a client wants to be able to set part of an entry to expire (a subset of the entry), but not the entire entry itself.  I’m not aware if this is possible, without reorganizing and making that section they want to set to expire a different channel / weblog altogether (which in this scenario would create more work from them in terms of data entry, hence trying to steer clear of it). 

    I hope that made sense..

    I thought there was perhaps an addon of some kind that might accomplish this, but I have been unable to fine one.  Thanks for any feedback!

  • #2 / Feb 15, 2011 6:03am

    James Smith

    259 posts

    You could use a custom date field to hold an expiration date and then in your template compare that date to the current time to only show those parts of the entry if the expiration date is later than now:

    {if '{your_expiration_field format="%U"}' >= '{current_time format="%U"}'}
     show custom fields here
    {/if}
  • #3 / Feb 15, 2011 12:19pm

    ewn

    100 posts

    That’s a good idea - I think I was making the issue too complex.

    Thanks.

  • #4 / Feb 15, 2011 2:04pm

    Ingmar

    29245 posts

    Glad to see that helped. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases