[TYPO3-dev] Dynamic path in $TCA
Vivian Pennel
vpennel at iocean.fr
Fri Mar 27 15:42:46 CET 2009
This is preciselly which i'am doing.
The new path destination (organised by page id) will become several
mount points for different redactors.
Then they can use their file in browsing their own uid directory to add
some file/pics in RTE.
I've resolved the problem, see my code i've sent to [TYPO3-dev] at
14h27, it needs more testing but seems working.
Patrick Gaumond a écrit :
> Vivian Pennel wrote:
>
>> for example :
>> $TCA['pages']['columns']['media']['config']['uploadfolder'] =
>> fileadmin/user_upload/[uid]
>> I found in typo3 core API markers like ###CURRENT_PID### or
>> ###THIS_UID### but they seem to be not interpreted by typo3 in this case.
>> My question is : How to add uid of the page dynamically at the end of
>> the path ?
>>
>
> Indeed that would be a nice feature. Having a better organised
> upload/pics/ and upload/media/ is a step in a cleaner directory
> structure when not using DAM.
>
> Is there hidden pitfalls if this become (as an optional feature) a way
> to work with images added to tt_content or pages resources?
>
> I mean having this: /upload/pics/23/ for tt_content, id=23 and
> /uploads/pics/44 for pages resource, id=44 ?
>
> Patrick
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
More information about the TYPO3-dev
mailing list