Template Manager
Manage display templates — slot count and display layout.
Each slot entry also takes a
placard: { side, align, gapIn } — where that slot's
placard attaches relative to the photo frame itself (not
the slot's own, possibly larger, box). side is
"top", "bottom", "left", or
"right" — which edge of the frame the placard sits
against. align is 0–100: where along that edge, from
the frame's own top/left (0) to its bottom/right (100) — 50 centers
it; for a top/bottom placard this slides it left↔right, for a
left/right placard it slides top↔bottom. gapIn is the
physical distance, in inches, between the placard and the frame
(same board-relative unit as the gallery's placard width/height —
see Gallery Admin's Placard Settings). Placard size,
background, and content (items, text, fonts) are configured once
for the whole gallery in Gallery Admin's Placard Settings, so every
display in a gallery looks consistent — only the position is set
here, per slot.
matte/frame each take enabled, color,
and width — a number in px, or a string like "5%" for a
percentage of the photo's own rendered width (so the matte/frame scales with
however large the photo actually appears, rather than staying a fixed pixel
amount). Matte's width may instead be
{top,right,bottom,left} for an uneven mat — px and percent can be
mixed per side. Set either enabled: false to omit it. The framed
photo always keeps its own aspect ratio — it's never stretched to fit the slot —
so a slot shaped differently than the photo will have empty space on two sides;
that space is always the page background, never a fill.
align controls where that space goes:
{ horizontal: "left"|"center"|"right", vertical: "top"|"center"|"bottom" }.
Preview — drag a slot to move it, its corners to resize it, or a dashed placard marker to re-attach it to a different side of the slot.
Dashed boxes show roughly where each slot's placard will attach
(slot_positions[i].placard — side/align/gap relative
to the photo frame). The real display resolves this against the
photo's actual measured frame box, so the exact position here is
an approximation — as is the placard drag's gapIn
(it assumes a default board width, since this template isn't
tied to any one gallery). Placard size, background, and content
are set once for the whole gallery in Gallery Admin's Placard
Settings. Dragging updates the JSON on the left live, so you can
fine-tune numbers by hand afterward if needed.