mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/structural_pages.git
synced 2026-03-11 10:57:42 -03:00
Add field_redirect_page to site_sections terms and fix root page hierarchy
- Add field_redirect_page to site_sections taxonomy terms, with a custom EntityReferenceSelection plugin that filters content_page nodes by section - Redirect taxonomy term canonical URLs to the configured node (301) - Fix root page detection in MenuBlock and views to also match nodes whose field_parent_page points to a taxonomy_term (not only empty parent) - Move root taxonomy-term option to the top of the parent-page dropdown - Add breadcrumb workaround for Gavias notech theme separator rendering - Add imecc_menu_helper submodule - Translate config labels and default terms from English to Portuguese Co-Authored-By: Henrique Bauer <henrique@webcontent.com.br> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -39,38 +39,38 @@ function _structural_pages_create_default_terms(): void {
|
||||
|
||||
// Structure: name => children.
|
||||
$terms_structure = [
|
||||
'News' => [],
|
||||
'Events' => [],
|
||||
'People' => [],
|
||||
'Institutional' => [
|
||||
'About',
|
||||
'Communication',
|
||||
'Information and Services',
|
||||
'Team',
|
||||
'Management',
|
||||
'Inclusion and Belonging',
|
||||
'Notícias' => [],
|
||||
'Eventos' => [],
|
||||
'Pessoas' => [],
|
||||
'Institucional' => [
|
||||
'Sobre',
|
||||
'Comunicação',
|
||||
'Informações e Serviços',
|
||||
'Equipe',
|
||||
'Gestão',
|
||||
'Inclusão e Pertencimento',
|
||||
],
|
||||
'Undergraduate' => [
|
||||
'Statistics',
|
||||
'Mathematics',
|
||||
'Applied Mathematics',
|
||||
'Mathematics Teaching',
|
||||
'Graduação' => [
|
||||
'Estatística',
|
||||
'Matemática',
|
||||
'Matemática Aplicada',
|
||||
'Licenciatura em Matemática',
|
||||
],
|
||||
'Graduate' => [
|
||||
'Statistics Program',
|
||||
'Mathematics Program',
|
||||
'Applied Mathematics Program',
|
||||
'Pós-Graduação' => [
|
||||
'Programa de Estatística',
|
||||
'Programa de Matemática',
|
||||
'Programa de Matemática Aplicada',
|
||||
],
|
||||
'Research' => [],
|
||||
'Extension' => [],
|
||||
'Administration' => [],
|
||||
'Departments' => [
|
||||
'Statistics Department',
|
||||
'Mathematics Department',
|
||||
'Applied Mathematics Department',
|
||||
'Pesquisa' => [],
|
||||
'Extensão' => [],
|
||||
'Administração' => [],
|
||||
'Departamentos' => [
|
||||
'Departamento de Estatística',
|
||||
'Departamento de Matemática',
|
||||
'Departamento de Matemática Aplicada',
|
||||
],
|
||||
'Library' => [],
|
||||
'IT Services' => [],
|
||||
'Biblioteca' => [],
|
||||
'Informática' => [],
|
||||
];
|
||||
|
||||
$created_terms = [];
|
||||
|
||||
Reference in New Issue
Block a user