Basics: what module-contacts is

module-contacts shows contact people as cards: a photo, name/role and clear ways to get in touch.

In the current implementation, it is a specialised content profile on top of the blocks structure, not a separate render pipeline.

That makes the module easy to reuse for teams, departments, partner networks and support contacts.

Option 1: structure and required keys

The top level sits in blocks with module_type: "module-contacts". The rest of the structure follows the blocks model with id, aria_label, section_title, columns and items[].

Each contact card in items[] normally uses:

  • title for the role/function
  • text_html for the name + contact links
  • image.* for the portrait and alt text

Backgrounds and section titles work exactly as in module-blocks.

Option 2: layout, columns and contact CTA

module-contacts is meant for comparing people visually, so layout: flow with 2-4 columns is the most common choice.

Ways to get in touch usually go in text_html as mailto: and tel: links, or in button.* when you want one clear primary CTA per card.

If you have many contacts, you can switch to slider or tabs, since the module supports the same layout modes as blocks.

Option 3: images, appearance and responsive behaviour

Portraits in image.src go through the image pipeline and get auto fields for responsive sources (srcset/sizes).

Use image.alt to genuinely describe the person/role, not just to repeat the name. That improves both accessibility and SEO.

Item-level appearance and display_below_desktop_class are used to fine-tune how the cards behave between desktop and mobile.

Option 4: compiler behaviour and implementation

There is currently no separate JS/HTML branch for module-contacts in the template script. Rendering goes through the same blocks markup as the other blocks variant modules.

This means that normalisation of items[], auto-display, layout modes and the image manifest follow the same rules as in module-blocks.

In practice: if you want to change how contact cards behave technically, you do it in the blocks pipeline or in the template markup for blocks.

Option 5: schema, SEO and AI optimisation

For contact cards, a schema set-up with Person and/or ContactPoint works well, linked to the global Organization.

Keep each card semantically clear: name/role, area of responsibility and the correct direct contact. Avoid generic headings that do not explain who the person is.

Make sure the contact details shown on the cards match the global contact data, so search engines and AI get consistent signals.