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).
Enabling React Media Fields
Section titled “Enabling React Media Fields”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 storedPageimageandPagefiledata stays completely unchanged. - Per field: Open Setup > Fields > [Your Field] > Details and set Inputfield Type to
InputfieldReactImageorInputfieldReactFile.
Studio Capabilities
Section titled “Studio Capabilities”- Single (
maxFiles = 1) and Multi (maxFiles = 0or> 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:MediaGatewayverifies entity and languageeditable()permissions, checks MIME types viafinfo_file+$sanitizer->validateFile(), sanitizes SVGs withDOMDocument, and caps raster uploads at 64 MP (16,384 pxper axis). WhenInterventionImageis installed, Media Studio can also extract dominant color palettes and LQIP blur placeholders automatically.
Polymorphic Links (InputfieldReactLink)
Section titled “Polymorphic Links (InputfieldReactLink)”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), andanchor(#section). - Link attributes & accessibility: Configure multi-language Link Label, ARIA Label for screen readers,
#anchorfragment,target="_blank"(New tab), andrel="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.