Project

General

Profile

Actions

Feature #20171

closed

Enable CSC "uploads" filelist to be manipulated by TS

Added by Steffen Ritter over 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2009-03-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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

patch_RFC10673_CSCUploads_trunk5205_v1.patch (825 Bytes) patch_RFC10673_CSCUploads_trunk5205_v1.patch Administrator Admin, 2009-03-12 09:13
10673_v2.patch (2.48 KB) 10673_v2.patch Administrator Admin, 2009-03-24 15:31
Actions

Also available in: Atom PDF