简体   繁体   English

TYPO3:在ext:DAM中隐藏文件夹,即使是BE管理员也是如此

[英]TYPO3: Hiding folders in ext:DAM, even for BE admin

I have a TYPO3 installation with DAM, where some folders/files are managed by git repository (ie. fileadmin/templates/* ), therefore I'd like to disable access to them from DAM and/or File module even for full backend admin to avoid conflicts in files changed through the backend. 我有一个带DAM的TYPO3安装,其中一些文件夹/文件由git repository(即fileadmin/templates/* )管理,因此我想禁用从DAM和/或File模块访问它们,即使是完整的后端管理员也是如此避免通过后端更改的文件冲突。 Of course I can't change the folder's permissions as they contains also public assets. 当然,我无法更改文件夹的权限,因为它们还包含公共资产。

What is the correct way, to hide or disable writes from backend? 隐藏或禁用后端写入的正确方法是什么?

AFAIK, this exists only for files ( fileDenyPatter ). AFAIK,仅存在于文件( fileDenyPatter )。

You could implement an own storage with TYPO3 6+, which would be relatively easy. 您可以使用TYPO3 6+实现自己的存储,这将相对容易。

But the fact that you are using DAM proves that you are still on 4.x. 但是你使用DAM的事实证明你仍然在4.x. You will either need to find a hook or xClass the folder tree class. 您将需要找到一个钩子或xClass文件夹树类。

Because of the general access problem with fileadmin/, i manage all my templates in typo3conf/. 由于fileadmin /的一般访问问题,我在typo3conf /中管理我的所有模板。 There i create a directory "templates" for example and manage my templates there. 我在那里创建了一个目录“templates”,并在那里管理我的模板。

In TYPO3 < 6.0 you have to set $TYPO3_CONF_VARS['FE']['addAllowedPaths'] = 'typo3conf/templates/'; 在TYPO3 <6.0中,你必须设置$TYPO3_CONF_VARS['FE']['addAllowedPaths'] = 'typo3conf/templates/'; to properly use your templates. 正确使用您的模板。

This also has the advantage that you basically only have to manage typo3conf/ in Git :) 这也有一个优点,你基本上只需要在Git中管理typo3conf / :)

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

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