0

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?

biesior
  • 55,576
  • 10
  • 125
  • 182

2 Answers2

1

AFAIK, this exists only for files (fileDenyPatter).

You could implement an own storage with TYPO3 6+, which would be relatively easy.

But the fact that you are using DAM proves that you are still on 4.x. You will either need to find a hook or xClass the folder tree class.

pgampe
  • 4,531
  • 1
  • 20
  • 31
  • Indeed, hiding auto created File Storage and replacing it with custom one (ie. only for `fileadmin/user_uploads`) did the trick in 6.0 :), could you advice me what is best approach for working with file's metadata? Ofc. if is there any doc describing changes in 6.0 in this topic it will be fine :) – biesior Jul 04 '13 at 08:03
1

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 :)

Shufla
  • 872
  • 4
  • 10