mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/structural_pages.git
synced 2026-03-10 02:17:42 -03:00
Altera lógica de Site Section e adiciona redirect em content_page
- 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>
This commit is contained in:
@@ -17,3 +17,17 @@ structural_pages.settings:
|
||||
bundle:
|
||||
type: string
|
||||
label: 'Bundle'
|
||||
|
||||
block.settings.structural_pages_menu:
|
||||
type: block_settings
|
||||
label: 'Structural Pages Menu Block'
|
||||
mapping:
|
||||
max_depth:
|
||||
type: integer
|
||||
label: 'Maximum depth'
|
||||
show_ancestor_title:
|
||||
type: boolean
|
||||
label: 'Show ancestor title'
|
||||
expand_active_trail:
|
||||
type: boolean
|
||||
label: 'Expand active trail'
|
||||
|
||||
Reference in New Issue
Block a user