TransWikia.com

Adding fields to content type edit form (not to the node itself)

Drupal Answers Asked by Chris Riddell on February 18, 2021

In Drupal 8, how do you add fields to the content type edit form, i.e. where you define the content type? I know how to add fields to the content type that wind up on the node edit form, but I’m looking to add a field to the content type itself. Essentially, what I’m trying to do is add some data to content types that would allow me to group them together. To do this, I need to add some additional metadata to the content type beyond name and description.

One Answer

It sounds like you need to create custom entities.

Try reading Creating a content entity type in Drupal 8 and maybe this module can help: Entity API

Answered by prkos on February 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP