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.
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
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP