简体   繁体   English

TYPO3 v8LTS表单框架表单定义存储

[英]TYPO3 v8LTS form framework form definition storage

I run half a dozen different TYPO3-installations all based on the same sitepackage with a few dozen to a few hundred websites in each installation. 我运行六种不同的TYPO3安装程序,这些安装程序均基于同一sitepackage,每个安装中都有几十到几百个网站。 Content between websites in individual installations needs to be separated. 各个安装中的网站之间的内容需要分开。 In order to achieve that form wise I can now add as many allowedFileMounts to the form configuration yaml as I need . 为了明智地实现该表单,我现在可以根据需要向表单配置yaml中添加尽可能多的allowedFileMounts The editors will only gain access to those allowedFileMounts that they have a filemount for defined on their backenduser or backendusergroup, making sure that no editor meddles with other website editors forms. 编辑者将只能访问在后端用户或后端用户组上定义了文件装载的allowedFileMount,并确保没有编辑者与其他网站编辑者表单混为一谈。 To give all groups of editors access to their individual forms definition folder would require to have hundreds of allowedFileMounts defined in the sitepackage, or, as filepaths may be ambigious between installations, to have a separate yaml file in each TYPO3-installation. 要使所有编辑者组都可以访问各自的表单定义文件夹,则需要在站点包中定义数百个allowedFileMount,或者,由于安装之间的文件路径可能不明确,因此在每个TYPO3安装中都必须有单独的yaml文件。

With every new website setup in one of the aforementioned TYPO3-installations the corresponding yaml file would have to be adjusted as well. 对于上述TYPO3安装之一中的每个新网站设置,相应的yaml文件也必须进行调整。 I wonder if there's a more elegant or rather: simple way to achieve that? 我想知道是否有更优雅或更简单的方法来实现这一目标? For example defining the allowedFileMounts for forms definitions in a backendusergroup itself via TSconfig? 例如,通过TSconfig在后端用户组本身中定义表单定义的allowedFileMounts?

The function getAccessibleFormStorageFolders inside FormPersistenceManager has no other magic than just reading the allowedFileMounts from the formSettings. FormPersistenceManager中的getAccessibleFormStorageFolders函数除了从formSettings中读取allowedFileMounts外没有其他魔术。 But maybe you can XCLASS this function and create your own logic based on the logged in user? 但是也许您可以XCLASS此功能并根据登录的用户创建自己的逻辑?

Class \\TYPO3\\CMS\\Form\\Mvc\\Persistence\\FormPersistenceManager 类\\ TYPO3 \\ CMS \\ Form \\ Mvc \\ Persistence \\ FormPersistenceManager

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM