beechit / default-upload-folder
Make it possible to configure the default upload folder for a certain TCA column
Installs: 50 527
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 7
Forks: 19
Open Issues: 5
Type:typo3-cms-extension
Requires
- typo3/cms-core: ^10.4.11 || ^11.5
This package is auto-updated.
Last update: 2023-03-08 11:49:59 UTC
README
Make it possible to configure the default upload folder for a certain TCA column
How to use:
- Download from TER or require (
composer require beechit/default-upload-folder
) extension default_upload_folder - Install extension default_upload_folder via the extension manager
- Create the default folders or the folder is automatically created (Editors needs access to storage and the folder root)
- Add configuration to pageTs
default_upload_folders {
# folder can be a combined identifier
tx_news_domain_model_news = 1:news
# Or a folder relative to the default upload folder of the user
tx_news_domain_model_news = news
# You can set a folder for the whole table of for a specific field of that table
tx_news_domain_model_news.fal_related_files = news_downloads
tx_news_domain_model_news.fal_media = news_media
# You can set a fallback for all tables
defaultForAllTables = 1:myDefaultUploadFolderForThisPartOfTheTree
}
FAQ
What happens when the editor does not have access to the upload folder?
The "Select & upload files" and "Add media by URL" buttons are not available for the editor
How do the fallbacks work?
- First it will check if there is a default upload folder for the table & field combination.
- Then it will check if there is a default upload folder for the table.
- Finally, it will check if there is configuration for
defaultForAllTables
Are folders automatically created?
Yes, but only if path set with combined identifiers like 1:myNewsPicturesFolder
Requirements:
TYPO3 10 LTS or TYPO3 11 LTS