Skip to content

Instantly share code, notes, and snippets.

@tbrodard
Last active August 29, 2015 14:16
Show Gist options
  • Save tbrodard/182254f8ee684058b91d to your computer and use it in GitHub Desktop.
Save tbrodard/182254f8ee684058b91d to your computer and use it in GitHub Desktop.
TYPO3 Neos: Menu with mixed link to pages and anchors
###################################################
# Bloc de menu pour les pages internes
###################################################
'Tc.Lre:MenuBlockWithAnchors':
superTypes: ['TYPO3.Neos:Content']
ui:
label: Bloc de menu avec ancres
group: 'lre-lge'
inlineEditable: TRUE
inspector:
groups:
'menuBlock':
label: Bloc de menu avec ancres
position: 50
childNodes:
main:
type: 'TYPO3.Neos:ContentCollection'
constraints:
nodeTypes:
'*': FALSE
'Tc.Lre:MenuItem': TRUE
properties:
'boxlayout':
ui:
inspector:
group: ~
id:
ui:
inspector:
group: ~
title:
type: string
defaultValue: 'Titre unique'
ui:
label: 'Titre (à utiliser pour les copies par références)'
reloadIfChanged: FALSE
inspector:
group: 'menuBlock'
position: 10
menuTitle:
type: string
defaultValue: 'Titre du menu'
ui:
label: 'Titre'
reloadIfChanged: TRUE
inspector:
group: 'menuBlock'
position: 20
inlineEditable: TRUE
aloha:
'format':
'p': FALSE
'h1': FALSE
'h2': FALSE
'h3': FALSE
'removeFormat': TRUE
subTitle:
type: string
defaultValue: 'Sous-titre du menu'
ui:
label: 'Sous titre'
reloadIfChanged: TRUE
inspector:
group: 'menuBlock'
position: 30
inlineEditable: TRUE
aloha:
'format':
'p': FALSE
'h1': FALSE
'h2': FALSE
'h3': FALSE
'removeFormat': TRUE
'image':
type: TYPO3\Media\Domain\Model\ImageVariant
ui:
label: 'Image'
reloadIfChanged: TRUE
inspector:
group: 'menuBlock'
position: 40
editorOptions:
crop:
aspectRatio:
allowCustom: FALSE
link:
type: reference
ui:
reloadIfChanged: TRUE
label: 'Lien'
inspector:
group: 'menuBlock'
position: 10
###################################################
# Elément de menu
###################################################
'Tc.Lre:MenuItem':
superTypes: ['TYPO3.Neos:Content']
ui:
label: Elément de menu
group: 'lre-lge'
inspector:
groups:
'link':
label: Lien
properties:
'item':
type: reference
ui:
reloadIfChanged: TRUE
label: 'Page'
inspector:
group: 'link'
position: 10
title:
type: string
defaultValue: ''
ui:
label: 'Titre (si vide, le titre de la page-cible sera repris)'
reloadIfChanged: TRUE
inspector:
group: 'link'
position: 20
id:
type: string
defaultValue: ''
ui:
label: 'Identificateur'
reloadIfChanged: FALSE
inspector:
group: 'link'
position: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment