Feature #20171
closedEnable CSC "uploads" filelist to be manipulated by TS
0%
Description
CSS Styled Content "FileUpload" uses StdWrap feature to retrieve the filelist which should be rendered.
By now Admins do not have possibility to manipulate, filepath by TS, only Data from tt_content will fit in.
Solution: Since the function "render_uploads" in typo3/sysext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php already uses "override" functionality, extend it to be overriden by TS.
The Script extracts the the filepath from cObj->data['select_key'] or sets it to 'uploads/media' if empty, even if the filelist ist generated by stdWrap. (ll. 308 ff. in original trunk)
This is way our "TS" manipulation cannot set filelist directly but only a filepath.
This is why I introduced a stdWrap Option in TS "filePath" allowing to overwrite the filePath in cObj->data['select_key']
This is very useful if you wanna display filelists dynamically per user/per month etc.
Example:
User sets Filepath to fileadmin/users/{TSFE:fe_user|user|username}/ in the Content Element, following TS would allow Interpreting it:
tt_content.uploads.20.filePath.field = select_key
tt_content.uploads.20.filePath.insertData = 1
New "filePath" is Type: stdWrap
(issue imported from #M10673)
Files
Updated by Steffen Ritter over 15 years ago
In off-list discussion with Benjamin Mack we decided not to just add this functionality to the "quick and dirty" and very unhandy code of the csc upload function but rebuild the "file-detecting-part" in a clean way which automatically includes my feature request.
No functional change happened! All things work as before!
See patch v2