We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How to postpone a custom field

How Do I?

m007's avatar
m007
83 posts
8 years ago
m007's avatar m007

I’m wondering if it’s possible that in an entry with two custom fields to make the content of the second field be visible in browser after a period of time since the entry was online. To be more specific I want an entry to display first only the content of the first custom field, and the content of the second field to be available after a period of time (one day, few hours) It’s that possible? Thanks!

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
8 years ago
Ingmar Greil's avatar Ingmar Greil

That is certainly possible. Simply use time variables and a conditional in your template.

       
m007's avatar
m007
83 posts
8 years ago
m007's avatar m007

Thanks Ingmar!

I’m not sure if I understand how to use time variables in a field. I suppose I have to include in channel entry a date field where to set a date in the future and then in template to put a conditional like this:

{if current_time >= date_field} {the_field_I_want_to_be_displayed_later_on} {/if}

It will work?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.