# Contact

## A contact card with your details, where phone and e-mail can appear on click.

## Basics: what module-contact is

**module-contact** is the contact card in CCMS that shows the company name, ways to get in touch and social profiles in a conversion-friendly section.

The module can use *reveal buttons* for email and phone, where the real links are only created when the user clicks. It shows you how many wanted your details, and it is not spam protection.

It is often used together with `module-contact-form` in the same row, but it can also be used on its own.

## Option 1: core keys and contact identity

The top level lives in `contact`, with keys such as `module_type`, `display`, `appearance`, `fac_contact_aria_label`, `section_title` and `section_text`.

The company details are controlled via:

- `display_company_name` + `company_name`
- `display_org_number` + `org_number_prefix` + `org_number`
- `display_address` + `address`

Language variants follow the pattern `<lang>_contact`, for example `en_contact` and `no_contact`.

## Option 2: reveal buttons and multiple phone numbers

Email is enabled with `display_email`, `email_button`, `email_user` and `email_domain`. On click, the button is replaced with a `mailto:` link.

Phone is enabled with `display_phone`, `phone_button`, `phone_link` and `phone_text`. You can give `phone_link`/ `phone_text` as either a string or an array.

When arrays are used, one button is created per number. `phone_button` can contain `{label}` to give dynamic button texts, e.g. `"Show {label} phone number"`.

## Option 3: social profiles and appearance

Social links are controlled via `display_*` and `*_url` for Facebook, Instagram, YouTube, Spotify, Snapchat, TikTok, LinkedIn and X.

For visual customisation you use `appearance` (a mini-DSL), which compiles to `auto_class`/ `auto_style`, together with the global design tokens in `design.*`.

Use `no-global` in appearance if you want this particular contact card to differ from the site's global module style.

## Option 4: compiler and runtime details

The build script normalises phone data via `applyContactPhoneAuto()` and creates the `auto_phone_*` fields that the template uses.

If the page contains FAQ, contact or contact-form, the `faq-contact` section is added to the layout automatically, and `faq.auto_display_faq_contact` controls whether it is shown.

In the client script, reveal buttons are swapped for real links on click, while click/reveal tracking is sent in the background.

## Option 5: SEO, schema and AI optimisation

Use clear, localised texts in `section_title`, `section_text`, `email_button` and `phone_button` for each language, for better semantics and better AI answers.

The contact's structured data should normally live globally (Organization/LocalBusiness + `contactPoint` + `sameAs`) rather than being duplicated in every module.

Make sure the visible social links in the module match the same profiles used in the global schema data.
