Skip to content

TEMP: Conference workshop demonstration branch#1672

Draft
bmtcril wants to merge 2 commits into
masterfrom
bmtcril/oex26_conference_workshop
Draft

TEMP: Conference workshop demonstration branch#1672
bmtcril wants to merge 2 commits into
masterfrom
bmtcril/oex26_conference_workshop

Conversation

@bmtcril
Copy link
Copy Markdown

@bmtcril bmtcril commented May 13, 2026

Description

This is a demonstration PR for the Open edX conference talk "Extending Open edX". It is designed to showcase adding a new plugin slot to an MFE, but it not intended to be merged.

OEX Workshop and others added 2 commits May 11, 2026 10:22
Adds a new ``frontend-plugin-framework`` plugin slot,
``org.openedx.frontend.authn.register.additional_fields.v1``, in
``RegistrationPage``. The slot is positioned just above the submit
button so plugins can append optional fields (e.g. demographics,
institutional affiliation, role) without modifying the form's core
required-fields layout.

Why a slot here, and why "additional_fields"?

* Several deployments already maintain forks of ``RegistrationPage``
  to inject extra fields. Forking the authn MFE is a well-known pain
  point — the slot replaces a class of long-lived forks with a single
  documented extension point.
* "additional_fields" deliberately scopes the slot to *learner-supplied
  optional input*, not to layout chrome (links, banners, marketing
  copy). Layout-level extension is better served by separate slots
  with simpler contracts.
* The slot exposes ``formFields`` (current form values) and
  ``setFormField(name, value)`` so plugin components participate in
  the existing form-state machinery instead of maintaining shadow
  state and submitting via a side channel.

This change is additive: with no plugin registered, the slot renders
nothing and the form is byte-identical to today.

Companion server-side changes:
- openedx-events: ``REGISTRATION_DEMOGRAPHICS_CAPTURED`` (#NNNN)
- edx-platform: fire the event from the authn registration view (#NNNN)

Reference: OEX 2026 workshop "Leveraging Open edX Extension Points",
Section 4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant