Is it possible to trigger a conditional in EE via the server time?
{if servertime == 'midnight to 13:00'}
do this
{if:else}
do something else
{/if}
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure, you can use the
{current_time}global variable for basic conditionals. To use your example, here’s how we’d check that the time’s between midnight and 13:00: