Skip to content

Calculates serial number based on entity type or bundle configuration.

Notifications You must be signed in to change notification settings

colorfield/entity_serial

Repository files navigation

Entity Serial

Per bundle computed serial number for entities.

The difference with the Serial module is that the field value is not stored but computed.

The sequence is preserved if entities from the bundle are being deleted.

Use case

When a sequence within a bundle is needed (e.g. invoice number, ...).

Configuration

Add the field to an entity type bundle (e.g. Article content type). Set the serial id to start from and the node id that will be used as the first entity to count from.

Roadmap

  • Optionally initialize values for existing entities
  • Lightweight system wide configuration without per bundle field definition by implementing hook_entity_bundle_field_info() [WIP]

Related modules

About

Calculates serial number based on entity type or bundle configuration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages