drupal_content_repository
A Drupal 11 module that provides REST-like endpoints for accessing and rendering Drupal content entities and Single Directory Components (SDCs). It renders published Drupal Entities like Nodes, Blocks or Paragraphs on individual pages by themselves in order for them to be used or included elsewhere.
Features
- Provides URLs for content like Nodes, Blocks or Paragraphs.
- Makes published content available separately from everything else.
- Might be used to make content elements usable from an iFrame or proxy.
- Granular access to legacy components from new projects.
- Render individual entities on standalone pages without Drupal theming
- Render SDCs with props passed via query parameters
- Support for view modes, language selection, and access control
- Clean HTML output with only necessary CSS/JS includes
Post-Installation
There is only one option. Wether Unpublished pages are available when requested. The default is to make them available if requested.
Additional Requirements
There are no additional requirements.
Recommended modules/libraries
You may want to use the DCR Renderer modules dcr-render Single Directory Component to render the content that this module makes available in a Single Directory Component (SDC) on the same or another Drupal site. The SDC could be included on a page using Experience Builder or embedded in a TWIG template.
Supporting this Module
If you have a Patreon, OpenCollective, etc. you can put links here to describe how people can support development.
Community Documentation
A great place to add links to YouTube walkthroughs, external documentation, or a demo site (use DrupalPod!).