typo3 - TYPO3 以非管理员身份删除 FileReference
问题描述
我不知道必须激活哪个设置才能允许非管理员用户删除后端中的文件引用。
作为管理员,我有那个以非管理员用户身份登录时丢失的小垃圾桶图标。
我设置了每个标志以允许在后端用户模块中进行数据操作,但到目前为止没有任何效果。唯一的选择是授予用户管理员权限。我想念什么?
编辑:我在 TYPO3 10.4
编辑:字段的 TCA:
'image' => [
'exclude' => true,
'label' => 'Image',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'image',
[
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
],
'foreign_types' => [
\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
'showitem' => '
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
--palette--;;filePalette'
]
],
'foreign_match_fields' => [
'fieldname' => 'image',
'tablenames' => 'tx_association_domain_model_association',
'table_local' => 'sys_file',
],
'maxitems' => 1,
'minitems' => 0
],
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
],
解决方案
推荐阅读
- r - 来自两个不同数据集的 ggplot 颜色匹配
- python - 无法运行 `uwsgi --ini uwsgi.ini`,日志为`未加载应用程序。进入全动态模式`
- c# - 由 Windows 任务调度程序触发
- angular - 未显示服务的模态
- dart - AngularDart 中的 somecomponent.template.dart 导入指向什么?
- javascript - 访问特定网址时自动触发点击事件
- android - 构建房间期间的 StackOverflowError
- html - 背景img开箱即用
- flutter - 让 EditableText 换行它的文本
- powershell - 如何减去对象属性中的特定值?