Notes

Notes

  • This component does not use a datasource item. It reads context from the current route (page) and the ?id= query string parameter.
  • On load, a JavaScript IIFE posts a JSON payload to /api/docs/document/create containing the route name as templateSuiteId, the resolved topic as category, and a jsonTemplateId that differs between dev and non-dev hosts.
  • On success the browser is redirected to the one-time link URL returned from the API. On failure an error heading replaces the loading spinner.
  • The ?id= query parameter should be a GUID in "N" format (no hyphens). If provided, a GraphQL call resolves the item name for use as the document category. If absent, it falls back to the first RelevantTopics field value from the current route item.
  • Access control is enforced server-side via DynamicDocUtil.CanAccessDocumentTemplateId, which checks topic entitlements.
  • The iframe starts with src="about:blank" and is populated after the API redirect completes.

Control Properties

Dynamic Doc Iframe

An embedded document viewer that loads documents in an iframe for inline viewing. Supports PDF, Office documents, and other viewable formats without requiring file download. Includes fullscreen toggle.

Control Properties

PropertyTypeDescription
SmallDroplinkBootstrap column width at the small breakpoint.
MediumDroplinkBootstrap column width at the medium breakpoint.
LargeDroplinkBootstrap column width at the large breakpoint.
OffsetSmallDroplinkColumn offset at the small breakpoint.
OffsetMediumDroplinkColumn offset at the medium breakpoint.
OffsetLargeDroplinkColumn offset at the large breakpoint.
AddClassSingle-Line TextAdditional CSS classes appended to the component wrapper.

Template Properties

Template Properties

This component does not use a datasource template. It derives all data from the current route item context and query string parameters.

SourceField / ParameterDescription
Route itemNameUsed as the templateSuiteId in the document creation API call.
Route itemRelevantTopicsMultilist field providing the default topic/category when no ?id= query parameter is present.
Query stringidOptional GUID (N format) identifying a Sitecore item whose name becomes the document category.