Use Conference Date Feature

Overview

The 2026 conference page now supports automatic state switching based on the conference date. Instead of manually changing the Hero State and Overview State in the CMS, you can select “Use Conference Date” and the page will automatically show the appropriate content (pre/during/post) based on the current date.

How to Use

In the CMS

  1. Go to the CMS admin panel
  2. Navigate to Conferences → UX Brighton 2026 - (homepage)
  3. Find the Hero content states dropdown
  4. Select “Use Conference Date” instead of manually choosing Pre/During/Post
  5. Do the same for Overview content states
  6. Make sure the Date & time (numerical) field is set correctly (e.g., 2026-11-06T09:00)
  7. Save your changes

How It Works

When “Use Conference Date” is selected, the system compares the current date/time with the conference date:

Example Timeline

If the conference date is set to 2026-11-06T09:00:

Benefits

No manual updates needed - Set it once and forget it
Prevents errors - No risk of showing outdated content
Consistent - Hero and Overview states stay synchronized
Reusable - Can be applied to future conference years

Manual Override

You can still manually control the state by selecting:

This is useful for testing or if you need to show specific content regardless of the date.

Technical Details

The feature uses Liquid templating to:

  1. Check if the state is set to “auto”
  2. Convert the conference date and current date to Unix timestamps
  3. Calculate the difference in seconds
  4. Determine which state to display based on the time difference

The logic is implemented in:

Important Notes

For Future Years

To add this feature to future conference years (2027, 2028, etc.):

  1. Update the CMS config (/admin/config.yml) to add the “Use Conference Date” option
  2. Copy the date calculation logic from the 2026 templates
  3. Update the year-specific references (e.g., data-buy-ticket="conference-2027")