我已在fs_media_gallery中添加了一个新视图,但未在组合框中显示。
flatListThree丢失。我所缺少的是,我还将此操作添加到了控制器和挂钩中。
<switchableControllerActions>
<TCEforms>
<label>LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions</label>
<onChange>reload</onChange>
<config>
<type>select</type>
<itemsProcFunc>MiniFranske\FsMediaGallery\Hooks\ItemsProcFuncHook->getItemsForSwitchableControllerActions</itemsProcFunc>
<items type="array">
<numIndex index="0">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.empty</numIndex>
<numIndex index="1">MediaAlbum->index</numIndex>
</numIndex>
<numIndex index="1">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.nestedList</numIndex>
<numIndex index="1">MediaAlbum->nestedList;MediaAlbum->showAsset</numIndex>
</numIndex>
<numIndex index="2">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.flatList</numIndex>
<numIndex index="1">MediaAlbum->flatList;MediaAlbum->showAlbum;MediaAlbum->showAsset</numIndex>
</numIndex>
<numIndex index="3">
<numIndex index="0">FlatList Three</numIndex>
<numIndex index="1">MediaAlbum->flatListThree;MediaAlbum->showAlbum;MediaAlbum->showAsset</numIndex>
</numIndex>
<numIndex index="4">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.showAlbumByConfig</numIndex>
<numIndex index="1">MediaAlbum->showAlbumByConfig;MediaAlbum->showAsset</numIndex>
</numIndex>
<numIndex index="5">
<numIndex index="0">LLL:EXT:fs_media_gallery/Resources/Private/Language/locallang_be.xlf:flexforms.mediagallery.switchableControllerActions.I.showAlbumByParam</numIndex>
<numIndex index="1">MediaAlbum->showAlbum;MediaAlbum->showAsset</numIndex>
</numIndex>
</items>
<default>MediaAlbum->index</default>
<size>1</size>
</config>
</TCEforms>
</switchableControllerActions>