mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/site_users.git
synced 2026-05-03 10:20:41 -03:00
Fotos LDAP:
- Ignora sync quando conta ainda não tem UID (evitava URI compartilhada)
- Filtra fotos abaixo do tamanho mínimo configurável (padrão 10 KB)
- Adiciona campo ldap_min_photo_size nas configurações e schema
- Update 10010: remove fotos placeholder já existentes
- Update 10011: remove mídias com URI ldap_photo_.{ext} sem UID
Bloco de cabeçalho do microsite:
- Exibe departamento abaixo do nome, sem label, com link para a entidade
- Exibe telefone de trabalho (work_phone) no lugar de phone (restrito)
Página de perfil:
- Título fixo "Perfil de @name" via callback profileTitle()
- Exclui rota profile da substituição de título pelo nó homepage
Subpáginas com URL amigável:
- Adiciona MicrositeSubpagePathProcessor (inbound + outbound)
- Inbound: /user/{username}/{subpage} → /user/{uid}/{subpage}
- Outbound: /user/{uid}/{subpage} → /user/{username}/{subpage}
- Busca alias em todos os idiomas para contornar limitação do AliasManager
Tema do microsite em rotas externas:
- MicrositeThemeNegotiator cobre rotas com parâmetro user sob /user/{user}/
- Cobre nós do structural_pages cujo alias começa com /user/{uid}/
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
site_users.settings:
|
|
type: config_object
|
|
label: 'Site Users settings'
|
|
mapping:
|
|
photos:
|
|
type: mapping
|
|
label: 'Photo settings'
|
|
mapping:
|
|
max_count:
|
|
type: integer
|
|
label: 'Maximum number of photos'
|
|
ldap_attribute:
|
|
type: string
|
|
label: 'LDAP photo attribute'
|
|
ldap_sync_enabled:
|
|
type: boolean
|
|
label: 'Enable LDAP photo synchronization'
|
|
ldap_min_photo_size:
|
|
type: integer
|
|
label: 'Minimum LDAP photo size in bytes'
|
|
user_editable_fields:
|
|
type: sequence
|
|
label: 'User-editable profile fields'
|
|
sequence:
|
|
type: boolean
|
|
label: 'Field editable'
|
|
role_view_modes:
|
|
type: sequence
|
|
label: 'Allowed view modes per role'
|
|
sequence:
|
|
type: sequence
|
|
label: 'View modes for role'
|
|
sequence:
|
|
type: string
|
|
label: 'View mode machine name'
|
|
add_content_links:
|
|
type: sequence
|
|
label: 'Add content menu items'
|
|
sequence:
|
|
type: mapping
|
|
label: 'Add content menu item'
|
|
mapping:
|
|
label:
|
|
type: label
|
|
label: 'Menu item label'
|
|
route_name:
|
|
type: string
|
|
label: 'Route name'
|
|
route_parameters:
|
|
type: sequence
|
|
label: 'Route parameters'
|
|
sequence:
|
|
type: string
|
|
label: 'Parameter value'
|
|
weight:
|
|
type: integer
|
|
label: 'Weight'
|