Adds configurable content 'containers' to entity types (for eg.paragraphs)
Adds configurable entity containers to entity types (for e.g. paragraphs), (*2)
In Drupal 7 we noticed a couple of shortcomings with the Paragraphs module (that are still not solved in Drupal 8 AFAWK)., (*3)
This package requires PHP 8.1 and Drupal 10.0 or higher. It can be installed using Composer:, (*4)
composer require wieni/wmcontent
Children and hosts can be entities of any type with a canonical route,
implementing Drupal\Core\Entity\ContentEntityTypeInterface
., (*5)
When updating a child entity, the changed time of the host entity is updated as well., (*6)
Before you begin, make sure your user role has the administer
wmcontent
permission. After that, you can get started by creating a new
container. You can do this by going to
/admin/config/wmcontent/containers
or by following the Structure >
WmContent > WmContent Containers menu link., (*7)
After creating the container, go to the (edit) page of a possible host entity. A new tab should have appeared with the name of the container you just created., (*8)
Clicking that link brings you to the master form, where you can add children to and edit/delete/reorder children from this host., (*9)
If you use Display Suite to build your pages, you can use the WmContent: Content blocks field to display the content of the children entities on a host., (*10)
You can change the way wmcontent containers are rendered by overriding
the wmcontent
theme implementation., (*11)
If you build your pages manually using Twig templates, you can load the
children of a host using WmContentManagerInterface::getContent
., (*12)
All notable changes to this project will be documented in the CHANGELOG file., (*13)
If you discover any security-related issues, please email security@wieni.be instead of using the issue tracker., (*14)
Distributed under the MIT License. See the LICENSE file for more information., (*15)