Search code examples
gittypo3dam

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. 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?


Solution

  • Because of the general access problem with fileadmin/, i manage all my templates in typo3conf/. There i create a directory "templates" for example and manage my templates there.

    In TYPO3 < 6.0 you have to set $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 :)