mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/structural_pages.git
synced 2026-03-08 01:27:42 -03:00
ba3087e6eb26a22021596558f9a178afdf75fac9
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>
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:
- Taxonomic Structure (primary): Organization based on hierarchical taxonomy vocabulary
- Parent-Child Structure (subsidiary): Direct hierarchy between pages for specific cases, supporting multiple entity types as parents
See docs/DESIGN.md for details.
Description
Languages
PHP
89.3%
CSS
6%
Twig
3%
JavaScript
1.7%