This project is not covered by Drupal’s security advisory policy.

Entity Builder Pathauto adds URL alias pattern support to Entity Builder definitions.

Define pathauto patterns for bundles in YAML or via the spreadsheet interface. This module integrates Pathauto with Entity Builder.

Features

  • URL Patterns in YAML: Define patterns alongside bundle definitions
  • Token Support: Use any Drupal token for dynamic URL generation
  • Multi-Entity: Works with nodes, taxonomy terms, users, and more
  • Smart Sync: Automatic create, update, or skip based on changes

YAML Example

bundle_definitions:
  - entity_type: node
    bundle_id: article
    label: Article
    pathauto_pattern: /blog/[node:title]

  - entity_type: node
    bundle_id: product
    label: Product
    pathauto_pattern: /products/[node:field_category:entity:name]/[node:title]

  - entity_type: taxonomy_term
    bundle_id: tags
    label: Tags
    pathauto_pattern: /tags/[term:name]

Common Token Patterns

  • /[node:title] - Simple title-based URL
  • /blog/[node:title] - With content type prefix
  • /news/[node:created:custom:Y]/[node:title] - Date-based paths
  • /[node:field_category:entity:name]/[node:title] - Taxonomy-based paths
  • /tags/[term:name] - Taxonomy term paths

Installation

composer require drupal/eb_pathauto drupal/pathauto
drush en pathauto eb_pathauto -y

Requirements

Related Modules

Project information

Releases