Example Calendar Templates
Ready-made template definitions and calendar transformation rule sets to copy, paste and adapt.
Ready-made template definitions and calendar transformation rule sets to copy, paste and adapt.
Overview
Writing a calendar definition from a blank page is slow and easy to get wrong. Start from one of these instead. Each definition is a complete, working starting point: paste it into the template's Definition field, change the page sizes to your product, and lay out the design.
The transformation rule sets are JSON arrays. Paste them into the Calendar Transformations field on the design page in admin, and merge them into a single array if you use more than one.
How to use them
Copy the definition that matches your product.
Open Admin > Products > Templates, open your template and paste it into the Definition field.
Change
width,height,bleed,unitanddpito your real print specification. The values below are placeholders.Save, then lay out the design and bind the date cells. See Build a 12-Month Wall Calendar.
Add any transformation rule sets you need, renaming the element names in the JSON to match the names you gave your own elements.
What to change, and what to leave alone
Safe to change:
Page dimensions, bleed, margin, unit, dpi
The page
typenames, as long as the design uses the same namesThe number of months in the loop sequence, for a 6-month or 18-month product
Change with care:
The internals of a month-grid sequence. The
defdate,dateshiftandtaglines work together; editing one line usually breaks the grid at the start or end of the month.count="false"on the cover sets. Removing it changes the page count the customer and the pricing formula see.
Template definitions
12-month wall calendar, weeks starting Monday
The usual starting point. Cover, twelve image pages, twelve month grids, back cover.
12-month wall calendar, weeks starting Sunday
Identical except that the month grid anchors to the Sunday before the 1st.
Use the rest of the Monday definition unchanged.
Mini previous and next month grids
Add these two sequences when the calendar page shows small grids for the surrounding months, and list all three on the page: dates="calendar-month previous-calendar-month next-calendar-month".
Year at a glance
A single page showing all twelve months. Each month grid is its own named sequence, and all twelve are passed to one page.
Weekly desk calendar
One spread per week. Test this one before selling it: the number of weeks that fall in a year varies.
Page-a-day calendar
One page per day. 366 pages in a leap year, so check the page limit against the binding first.
Transformation rule sets
Grey the out-of-range days
Hide the out-of-range days
Sundays and holidays in red
Short upper-case month names
A logo on December only
Eleven rules. The element is named brand-logo in the design.
Alternating artwork on odd and even months
Both versions sit on the same page, named art-odd and art-even.