Skip to content
HomePagesHomePages template kit

contactAssign

Fills a single `image` or `text` slot from ONE of the property's attached contacts, chosen by the model against `pick`.

Fills a single image or text slot from ONE of the property’s attached contacts, chosen by the model against pick. The property’s contact cards are the candidates (name, title, organisation, and which one is primary); the chosen card’s field is what the slot receives — so the same decision puts a developer’s logo on an image slot or a builder’s name on a text slot. Write the brief against what a card SHOWS: a card carries no role, so “the developer” is read off its title and organisation. Say what to do when no card fits (“else the primary contact”); with exactly one card, or none, no model call is made.

Import from @homepages/template-kit.

function contactAssign(i: ContactAssignInput): BuiltDecision<"contact-assign">
Name Type Required Description
i ContactAssignInput required

BuiltDecision<"contact-assign">

import { contactAssign } from "@homepages/template-kit";
contactAssign({ pick: "The developer or builder of the property; else the primary contact.", field: "logo_dark" });