mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/structural_pages.git
synced 2026-03-08 01:27:42 -03:00
- Adiciona campo field_redirect_link (link) no bundle content_page; EventSubscriber emite redirect 301 quando o campo está preenchido - field_site_section passa a ser obrigatório - Formulário de content_page: AJAX no site section, select hierárquico de página pai filtrado por seção, validação customizada - StructuralPagesMenuBlock: MAX_DEPTH 10→50, nova lógica de raiz via field_site_section, variável ancestor_url no render array - Template do menu: novas classes BEM/Gva, suporte a is_redirect, usa ancestor_url em vez de chamada Twig direta - CSS do menu reescrito com estilos flyout/sidebar; Select2 adicionado para o campo de página pai no formulário admin - display_submitted desabilitado no tipo content_page Co-Authored-By: Bauer <henrique@webcontent.com.br> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
728 B
YAML
30 lines
728 B
YAML
langcode: en
|
|
status: true
|
|
dependencies:
|
|
config:
|
|
- field.storage.node.field_site_section
|
|
- node.type.content_page
|
|
- taxonomy.vocabulary.site_sections
|
|
module:
|
|
- taxonomy
|
|
id: node.content_page.field_site_section
|
|
field_name: field_site_section
|
|
entity_type: node
|
|
bundle: content_page
|
|
label: 'Site Section'
|
|
description: 'For root pages, select the section. For child pages, this field is filled automatically.'
|
|
required: true
|
|
translatable: false
|
|
default_value: { }
|
|
default_value_callback: ''
|
|
settings:
|
|
handler: 'default:taxonomy_term'
|
|
handler_settings:
|
|
target_bundles:
|
|
site_sections: site_sections
|
|
sort:
|
|
field: name
|
|
direction: asc
|
|
auto_create: false
|
|
field_type: entity_reference
|