Iframe

Use an iframe when you need to embed another page or tool inside the page in a framed area.

Live demo

Visitors interact with the embedded content where it sits. Content authors supply a stable URL, a short title for accessibility, and a sensible starting height. Visual designers should expect third-party branding and loading behaviour. Use embeds only when policy and security allow the source domain.

Behaviour

  • The iframe loads the remote URL at full width of the component.
  • A resizer script can adjust height based on messages from the embedded page when supported.

Anatomy

  1. Iframe with unique id and title.
  2. Script that initializes height behaviour when the clientlib loads.

Iframe embed (placeholder)

Replace with form or map embed example.

Content guidelines

  • Title should name the service or task (for example “Campus map”), not the raw URL.

Best practices

Do

  • Whitelist domains in any CSP or dispatcher rules before go-live.

Don't

  • Don't embed mixed HTTP content on HTTPS pages.

When to use

  • Approved external tools (forms, maps, booking) where embed is allowed by security and privacy review.

When not to use

  • Login or PII flows without a DPF or security sign-off.
  • Simple videos; use YouTube or Media player when they fit.

CRXDE Lite query

Use this query in CRXDE Lite to find instances of this component.

/jcr:root/content//*[@sling:resourceType = 'concordia/components/iframe/iframe.html']

Technical behaviour

iframe.html loads the iframe resizer clientlib, outputs <iframe width="100%"> with src, height, and title, then runs iFrameResize({ scrolling: 'omit' }, "#id") so nested content can report its height.

Authoring fields

FieldPurpose
URLHTTPS embed target.
HeightInitial minimum height before resize messages.
TitleShort description for accessibility.

Instances in the codebase

LocationNotes
apps/concordia/components/iframe/iframe.htmlHTL.
org.concordia.wcms.core.models.IframeModelSanitized src and metadata.
ItemLocation
HTLapps/concordia/components/iframe/iframe.html
Modelorg/concordia/wcms/core/models/IframeModel.java
Vendor clientlibapps.concordia.vendor.iframe-resizer