Quintino A. G. Souza ba3087e6eb Add content translations for site_sections taxonomy terms
Taxonomy term names are content, not interface strings, so .po files
don't translate them. This adds programmatic content translations via
the ContentLanguageSettings API and addTranslation/setName on each term.

- Add _structural_pages_term_translations() with pt-br name map
- Add _structural_pages_add_term_translations() to create/update translations
- Add _structural_pages_ensure_content_translation() using ContentLanguageSettings API
- Add config/optional for new installs with content_translation enabled
- Remove term name entries from .po file (ineffective for content)
- Add update hook 10004 to fix existing installations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:41:02 -03:00
2026-02-05 08:42:19 -03:00

Structural Pages - Design Document

Overview

The structural_pages module implements a hierarchical editorial structure and contextual navigation for institutional sites in Drupal 11. The module was designed for higher education institutions but is generic enough for other institutional contexts.

Problem

In Drupal, content is added in a flat manner (non-hierarchical), and menus are traditionally used to organize content into hierarchical structures. This creates user experience problems because content editors typically do not have permission to administer menus.

Solution

The module implements two complementary structures:

  1. Taxonomic Structure (primary): Organization based on hierarchical taxonomy vocabulary
  2. Parent-Child Structure (subsidiary): Direct hierarchy between pages for specific cases, supporting multiple entity types as parents

See docs/DESIGN.md for details.

Description
No description provided
Readme 136 KiB
Languages
PHP 89.3%
CSS 6%
Twig 3%
JavaScript 1.7%