Feature #68895

Add `options.defaultUploadFolder` to PageTSconfig

Added by Artus Kolanowski over 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2015-08-09
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

Adding options.defaultUploadFolder to PageTSconfig is useful for the following scenario:

You have a multi domain setup and each domain (root page) should have its own file mount (folder). You have an editor which has access to several of these domains. The editor uploads files mostly through the CE and not through the filelist module.

Having options.defaultUploadFolder in PageTSconfig allows you to setup the default upload folder for each domain separately. Whenever the editor uploads a file it will be stored in the right folder and the editor has not to care about.


Related issues

Related to TYPO3 Core - Feature #80697: Define defaultUploadFolder in PageTSconfig Closed 2017-04-05

Associated revisions

Revision f54e2855 (diff)
Added by Frans Saris over 4 years ago

[FEATURE] Introduce hook in BackendUserAuthentication::getDefaultUploadFolder

A hook is introduced to manipulate the default upload folder of FAL
inline upload and RTE text fields.

Change-Id: Ib497b02c90d3217062d2abb55eef693e5c445c46
Resolves: #68895
Releases: master
Reviewed-on: http://review.typo3.org/42470
Reviewed-by: Daniel Goerz <>
Tested-by: Daniel Goerz <>
Reviewed-by: Helmut Hummel <>
Reviewed-by: Frans Saris <>
Tested-by: Frans Saris <>
Reviewed-by: Wouter Wolters <>
Tested-by: Wouter Wolters <>

History

#1 Updated by Gerrit Code Review over 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

#2 Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

#3 Updated by Gerrit Code Review over 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

#4 Updated by Benni Mack over 4 years ago

  • Target version changed from 7.5 to 7 LTS

#5 Updated by Frans Saris over 4 years ago

After some discussion on Slack we come to the next conclusion:

To prevent we do stuff we need to drop later we now go for adding the params $pid = NULL, $table = NULL, $field = NULL to BackendUserAuthentication::getDefaultUploadFolder() and put a hook there so we are able to manipulate the outcome.

#6 Updated by Gerrit Code Review over 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

#7 Updated by Gerrit Code Review over 4 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

#8 Updated by Gerrit Code Review over 4 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

#9 Updated by Frans Saris over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#10 Updated by Christoph Schwarzenberg almost 3 years ago

Hi,

I wanted to use this feature in my setup, but it doesn't seem to work.
Setting options.defaultUploadFolder in Page TSconfig has no effect.
Additionally I miss this configuration property in the official Page TSConfig: https://docs.typo3.org/typo3cms/TSconfigReference/7.6/PageTsconfig/Options/

My TYPO3 version is 7.6.16

Christoph

#11 Updated by Stephan Großberndt almost 3 years ago

The patch which closed this issue added only a hook making it possible to change the path but not a pagetsconfig option.

#12 Updated by Christoph Schwarzenberg almost 3 years ago

Ok.
Is it possible to add this feature, as Artus Kolanowski described it above?

#13 Updated by Frans Saris almost 3 years ago

We created an extension that uses the hook and supplies more or
less this feature https://github.com/beechit/default_upload_folder/

#14 Updated by Christoph Schwarzenberg almost 3 years ago

Great, thank you very much.

#15 Updated by Riccardo De Contardi over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF