Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,220 of 9,220 pages
About the help in other languages
All help pages

Swap a seasonal layout by date

A Time condition (from, to) on the seasonal mapping switches it at its start and end without anyone clicking.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/examples/maintain/seasonal-swap-by-time.md

On this page

Swap a seasonal layout by date

The Black Friday layout shows from Friday 00:00 to Monday 23:59.

Life cycle: Maintain, example 14 of 35. Worked out on the Fit & Healthy site of Exponential 6.0.15+.

Contents

  1. In the Layouts editor
  2. With templates
  3. Which to choose
  4. Check

In the Layouts editor

  1. On the seasonal mapping, Add condition of type Time with the start and end.
  2. Keep its priority above the regular mapping.

Since explayouts 1.4.42 the resolver remembers that answer only until the condition's next start or end, and while that moment is within the page cache's [HttpCacheSettings] MaxAge (3600 seconds) the page is kept out of the page caches (Cache-Control: private, no-store), so the layout switches on time.

With templates

  1. A template condition on currentdate() plus a cache clear at the boundary.

Which to choose

The Time condition for planned campaigns: it switches at the start and the end, without lag.

Check

  • After the end date the regular layout is back.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x