Group Classes block: option to show one class, without repeating its description #114

Closed
opened 2026-07-28 13:39:00 +00:00 by thatguygriff · 0 comments
Owner

Request

The Group Classes block should be able to display a single chosen group class instead of all of them, so it can be embedded on a page that describes that specific group.

In that single-class mode the block should not repeat the class description — the page it is embedded on already carries that copy. It should show just the practical details: when the class runs and how to enrol.

Current state

The picker itself already exists (added in cde8704): the block has an offeringId attribute with a Classes shown → Class dropdown, and the shortcode accepts [us_group_classes offering="…"]. It was never recorded in the changelog.

What is missing is the second half — in single-class mode the card still renders the offering's description, duplicating the surrounding page.

Expected behaviour

With a class pinned, the card shows:

  • term dates and class time, plus any schedule note
  • the instructor
  • price
  • the "Enrol by" deadline and the enrol / enrolled / withdraw controls

and omits the class description. Showing All classes is unchanged: full browsable catalog, descriptions included.

The editor preview should reflect the same two modes so the option's effect is visible while editing.

## Request The **Group Classes** block should be able to display a single chosen group class instead of all of them, so it can be embedded on a page that describes that specific group. In that single-class mode the block should not repeat the class description — the page it is embedded on already carries that copy. It should show just the practical details: when the class runs and how to enrol. ## Current state The picker itself already exists (added in `cde8704`): the block has an `offeringId` attribute with a **Classes shown → Class** dropdown, and the shortcode accepts `[us_group_classes offering="…"]`. It was never recorded in the changelog. What is missing is the second half — in single-class mode the card still renders the offering's `description`, duplicating the surrounding page. ## Expected behaviour With a class pinned, the card shows: - term dates and class time, plus any schedule note - the instructor - price - the "Enrol by" deadline and the enrol / enrolled / withdraw controls and omits the class description. Showing **All classes** is unchanged: full browsable catalog, descriptions included. The editor preview should reflect the same two modes so the option's effect is visible while editing.
thatguygriff added the enhancement label 2026-07-28 13:39:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Unsupervised/unsupervised-scheduler#114