Skip to content

Install

Compound Field needs Drupal 11.4 or later on PHP 8.3 or later, with core Field and Field UI. It has no other runtime dependencies. From the Drupal project root, add the module with Composer, enable it and rebuild caches:

composer require drupal/compound_field
vendor/bin/drush en compound_field -y
vendor/bin/drush cr

Without Drush, open Extend, select Compound Field, and click Install. The drush compound-field:* commands are optional and need Drush 13 or later.

Give builders and editors access

Grant trusted builders Administer compound field, plus the usual permissions to administer fields and displays on the host content type. Editors need permission to create or edit the host content and access its referenced content or media.

Open Structure → Compound fields and create your first compound, or explore the available field types. A tutorial that needs an extra module, such as the Address and reference example, names it at the top.