x
 
Create New Page
 View Previous Changes    ( Last updated by Mark Bowen )

Show content according to the day of the week

Just a very quick little snippet here.

If you want to show some content depending upon the day of the week then you could do something like the code below :

{if "{current_time format="%l"}" == "Monday"}
Show something 
for Monday
{
/if}

{if 
"{current_time format="%l"}" == "Tuesday"}
Show something 
for Tuesday
{
/if} 

Hope that helps someone a little bit.

Mark

Category:EE1

Categories: