Skip to content

Media Studio & Polymorphic Links

React ships dedicated media and link Inputfields backed by shared runtime bundles (ReactMedia.js, InputfieldReactImage.js, InputfieldReactFile.js, and InputfieldReactLink.js) so editors get fast uploads, visual focal-point editing, and type-safe multi-language links.

Media Studio (InputfieldReactImage & InputfieldReactFile)

Section titled “Media Studio (InputfieldReactImage & InputfieldReactFile)”

Both InputfieldReactImage and InputfieldReactFile consume the shared window.ReactMediaRuntime studio and communicate with the signed /_react/media gateway (MediaGateway).

You can activate them in two ways:

  • Globally for all pages & repeaters: Check Use React Image & File Editors on Pages (useReactMediaFields) under Modules > Configure > React. All existing stored Pageimage and Pagefile data stays completely unchanged.
  • Per field: Open Setup > Fields > [Your Field] > Details and set Inputfield Type to InputfieldReactImage or InputfieldReactFile.
  • Single (maxFiles = 1) and Multi (maxFiles = 0 or > 1) layouts: Drag-and-drop or paste upload zones, drag-to-reorder handles, and instant Grid view vs Table view switching.
  • Multi-language metadata: Edit image/file descriptions and tags across all active ProcessWire languages directly inside the inspector dialog.
  • Non-destructive & destructive image tools: Set focal points (focus: { top, left }), crop, rotate, and flip images right from the inspector.
  • Upload safety & optional InterventionImage: MediaGateway verifies entity and language editable() permissions, checks MIME types via finfo_file + $sanitizer->validateFile(), sanitizes SVGs with DOMDocument, and caps raster uploads at 64 MP (16,384 px per axis). When InterventionImage is installed, Media Studio can also extract dominant color palettes and LQIP blur placeholders automatically.
InputfieldReactImage supports single and multi-item modes, multi-language metadata, drag sorting, and instant Grid or Table view switching.

InputfieldReactLink lets editors pick and configure links of any target type from a single unified control:

  • Built-in target types: url (external or relative path), page (live ProcessWire page search), record (custom module records), image, video, file, email, phone (tel), and anchor (#section).
  • Link attributes & accessibility: Configure multi-language Link Label, ARIA Label for screen readers, #anchor fragment, target="_blank" (New tab), and rel="noopener noreferrer" through the inline settings popover.
  • Custom link resolvers: Downstream modules can register additional link target types lazily via React::registerLinkResolvers ('reactCapabilities' => ['linkResolvers']) so editors can link directly to custom collections or catalog records.
InputfieldReactLink handles URLs, ProcessWire pages, custom records, media, emails, and phones with localized labels and ARIA attributes.

Next steps