Search by

pantheon-systems-ps / pantheon_nextjs_edu_demo

willjackson

Education vertical for the decoupled Next.js-on-Pantheon demo: registers the EDU front end (next_site) plus its menu and higher-ed demo content.

Package info

github.com/pantheon-systems-ps/pantheon_nextjs_edu_demo

Type:drupal-recipe

pkg:composer/pantheon-systems-ps/pantheon_nextjs_edu_demo

Statistics

Installs: 16

Dependents: 0

Suggesters: 0

Stars: 1

1.0.0 2026-07-28 21:02 UTC

This package is not auto-updated.

Last update: 2026-11-04 20:56:12 UTC


README

The Education vertical for the decoupled Drupal + Next.js architecture. Applied on top of pantheon_nextjs_multi_demo, it turns the shared Drupal backend into the content source for an Education front end.

Requirements

  • pantheon-systems-ps/pantheon_nextjs_multi_demo: the global backbone recipe, which defines the shared content model and per-site association field. It is a hard dependency and is applied automatically.
  • Drupal core 10.4 or newer and drupal/next, both inherited from the backbone recipe.

What it adds

  • next.next_site.edu: registers the Education Next.js front end, with base, preview, and revalidate URLs. The base URL is a recipe input (base_url), overridable per environment.
  • edu_event content type: the Education-specific Event type (date, location, hero image, virtual-event flag), plus its Next.js site-resolver configuration.
  • nextjs-edu navigation menu: a two-level site navigation, with the Page content type wired to use it.
  • Demo content tagged to the edu front end via field_next_site: 18 pages, 10 articles, and 8 events, with their images and menu links. Only the Education front end renders this content.

Apply

composer require pantheon-systems-ps/pantheon_nextjs_edu_demo
drush recipe recipes/pantheon_nextjs_edu_demo
drush cache:rebuild

Set the front-end base URL for your environment:

drush recipe recipes/pantheon_nextjs_edu_demo \
  --input=pantheon_nextjs_edu_demo.base_url=https://your-edu-frontend.example

Requiring or applying this recipe pulls in and applies pantheon_nextjs_multi_demo first.