…
← Back to Home

PADI-320 Β· Domain Access POC

Content filtering per domain

Switch the active affiliate domain below. The frontend forwards your choice to Drupal as the X-Domainheader, and Domain Access returns only that domain's content.

Showing Global (padi.com) β€” 0 articles

Active affiliate domain
GET /jsonapi/node/article
(no X-Domain header β†’ default domain)

Per-domain config from Drupal (domain_config)

siteName: PADIslogan: β€”currency: USD

These values are overridden per domain in Drupal via domain_config (settable from the domain_config_ui admin UI) and fetched from /api/site-settings with the same X-Domain header. Switch domains above and watch the site name / currency change β€” this is per-region configuration (not just content), which a taxonomy/field-filter approach cannot provide.

Language scope for Global (FE-configured)

Languages exposed: en (default)fres

This per-domain subset + default is the job Drupal's domain_language module did on the monolith β€” here it lives in FE config (src/shared/config/domains.ts). The CMS still holds all 7 translations; the frontend just scopes which ones this affiliate offers and which it opens in. A real build would use this to restrict the language switcher and redirect /padi.com to its default locale.

No content assigned to this domain.

API Negotiation
GET http://app/en/jsonapi/node/article
// Language determined by URL path prefix /en/