drupal-taxonomy

Load, query, and manage Drupal taxonomy terms via Entity API in PHP or Twig.

67|13|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/edutrul/drupal-ai --skill drupal-taxonomy-edutrul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-taxonomy
Source: https://github.com/edutrul/drupal-ai/tree/main/.claude/skills/drupal-taxonomy
Command: npx skills add https://github.com/edutrul/drupal-ai --skill drupal-taxonomy-edutrul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drupal sites often require programmatic access to taxonomy terms for dynamic filtering, content tagging, and navigation without manual data edits.

Core Features & Use Cases

  • Load terms by ID, by vocabulary, or by name using Drupal's Entity API.
  • Traverse term hierarchy (parents, children, full tree) and read or set term fields.
  • Create, update, and query taxonomy terms in PHP or Twig for dynamic workflows.
  • Use cases include building term-driven filters, dynamic menus, and taxonomy-based content tagging.

Quick Start

Load a taxonomy term by ID or vocabulary, then access its name and other fields or traverse its parents/children to build a taxonomy tree.

Frequently Asked Questions about drupal-taxonomy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I load a Drupal taxonomy term by ID or vocabulary programmatically?

Load Drupal taxonomy terms by ID or vocabulary using the Entity API and term storage methods. Access term names, fields, and hierarchy data directly in PHP or Twig for dynamic content workflows.

How do I traverse a Drupal taxonomy term hierarchy to get parents and children?

Traverse Drupal taxonomy term hierarchy by loading term storage and querying parent-child relationships. Navigate full taxonomy trees to build dynamic menus, term-driven filters, and hierarchical navigation structures.

Can I create and update Drupal taxonomy terms in Twig templates?

Create, update, and query Drupal taxonomy terms in both PHP and Twig. Read or set term fields dynamically to support content tagging and taxonomy-driven workflows without manual data edits.

Does this approach to Drupal taxonomy management follow the Entity API patterns?

Drupal taxonomy term management follows standard Entity API patterns, using term storage and field access methods. Includes basic error handling and validation for loading terms by name, ID, or vocabulary.

What's the best way to build term-driven filters using Drupal taxonomy?

Build term-driven filters by loading taxonomy terms by vocabulary, traversing their hierarchy, and reading term fields via the Entity API. Query and manage terms programmatically to enable dynamic content filtering.