Hi there, my title is really poor - apologies. I'll describe what I'm trying to do as best as I can.
I have a client who periodically runs open days. I've created a page for their open days which isn't linked to anywhere in the site because 90% of the time it isn't relevant as there are no open days coming up.
However
I want to implement a feature that allows my client to log in to the admin panel and really easily "flick a switch" or check a checkbox or somthing similar.
Once this is done, some predefined html is printed on the homepage (which advertises the open day and links to the open day page).
Once the open day is over, the client can "flick the switch again and the html disappears. From my research, it seems like the "if" statement will be useful in allowing me to print the necessary html but I can't work out what mechanism to use for the "flicking the switch" part.
Thanks for your help!
I have a client who periodically runs open days. I've created a page for their open days which isn't linked to anywhere in the site because 90% of the time it isn't relevant as there are no open days coming up.
However
I want to implement a feature that allows my client to log in to the admin panel and really easily "flick a switch" or check a checkbox or somthing similar.
Once this is done, some predefined html is printed on the homepage (which advertises the open day and links to the open day page).
Once the open day is over, the client can "flick the switch again and the html disappears. From my research, it seems like the "if" statement will be useful in allowing me to print the necessary html but I can't work out what mechanism to use for the "flicking the switch" part.
Thanks for your help!