Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Custom Field

Security covered Under active development 2,968 sites

This module provides a flexible and performant way to create custom fields with various widget and formatter options, storing data efficiently in a single table. It aims to be a scalable alternative to other field types, reducing overhead and potentially replacing the need for additional modules.

Dynamic custom field types with extensive widget and formatter plugin support. A highly performant & scalable alternative to paragraphs and entity reference by storing data in a single table.

Community support

Have a support question or new feature you want to discuss? Join the Drupal #custom-field slack channel.

Features

  • Multiple-value fields without entity references
  • Inline field widgets using a customizable css-flexbox-based layout system
  • Multiple field formatters: Default (custom theme hook), Inline, HTML List, Table, Flipped Table, Single Directory Component, Custom Template (similar to views' field rewrite functionality)
  • Clone field settings from ANY entity type
  • Add/Remove columns to fields with existing data. See documentation
  • Performance & scalability - Eliminates unnecessary field table bloat and configuration files
  • Reduce overhead - May replace the need for additional contrib modules

Integrations

Migrate to Custom fields

You can use the Field Updater Service module to map 1 or more fields in a configuration entity and use the provided service in an update hook from your custom module.

Included sub-modules

Module Description custom_field_ai AI (Artificial Intelligence) integration custom_field_entity_browser Entity Browser integration custom_field_graphql GraphQL compose integration custom_field_jsonapi JSON:API integration custom_field_linkit Linkit integration custom_field_media Provides a Media Library widget custom_field_sdc Use Single Directory Components in manage display. custom_field_search_api Enhances Search API integration custom_field_viewfield Provides the ability to reference and display views

Why this module?

In most cases, creating multiple single value field api fields in an entity form is overkill for storing simple field data that would be better to consolidate in a single table. One Custom Field can contain many columns in a single table which can lead to a substantial boost in performance by eliminating unnecessary joins and allowing for simpler configuration management.

Drupal 11 · not 10

Ask your assistant about Custom Field

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • field Drupal core
  • file Drupal core
  • filter Drupal core
  • image Drupal core
  • link Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
86
Tracked since
Jan 2023
Latest release
4 weeks ago
Releases (12 mo)
18 ▼ from 28
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.0.0-beta2 Pre-release 10 Mar 5, 2024
2.0.0-rc10 Pre-release 9–10 Feb 29, 2024
2.0.0-rc9 Pre-release 9–10 Feb 16, 2024
3.0.0-beta1 Pre-release 10 Feb 16, 2024
2.0.0-rc8 Pre-release 9–10 Feb 14, 2024
3.0.0-alpha2 Pre-release 10 Feb 14, 2024
2.0.0-rc7 Pre-release 9–10 Jan 11, 2024
3.0.0-alpha1 Pre-release 10 Jan 11, 2024
2.0.0-rc6 Pre-release 9–10 Dec 22, 2023
3.0.x-dev Dev 10–11 Dec 22, 2023