私は現在、私のプロジェクトにtypo3-neosを使用していますが、この問題があります。.yaml ファイルでこのようなカスタム ノードを作成しようとしています
'TYPO3.Designs:SomeItem':
superTypes:
- 'TYPO3.Neos:Content'
ui:
group: 'structure'
label: 'Some Item'
icon: 'icon-columns'
inlineEditable: true
inspector:
groups:
document:
label: 'Item options'
position: 1
properties:
someitem:
type: string
defaultValue: 'item1'
ui:
label: 'Alignment'
reloadIfChanged: TRUE
inspector:
group: 'document'
editor: 'TYPO3.Neos/Inspector/Editors/SelectBoxEditor'
editorOptions:
values:
item1:
label: 'item1'
item2:
label: 'item2'
right:
label: 'item3'
この部分で
editorOptions:
values:
item1:
label: 'item1'
item2:
label: 'item2'
right:
label: 'item3'
データベースからデータを取得したいので、データベースに10個のアイテムがある場合、エディターに10個のオプションが表示されます。
どうやってやるの?どんな助けでも大歓迎です、ありがとう