[TYPO3-dam] Extra fields in DAM records only for certain file types
georg kuehnberger
georg at georg.org
Thu Apr 3 09:24:26 CEST 2008
Richard,
I think you could also dynamically rewrite the TCA depending on whatever
condition is on your mind.
additional thought: mis-using a category for your purpose?
changing the 1:1 relation might be harder, I feel;
hth regards georg
Richard Bausek wrote:
> thanks georg for your reply,
>
> I tried exactly the 2 options you described.
>
> But I don't want to alter the existing media types, but instead add a
> new one in the TCA which contains the desired file types. So that for
> example the .jpg Files are still found as "Image" media type but also in
> the new media type.
>
> But I think this is not possible as the mapping between file extensions
> and media types seems to be 1:1. Meaning that a file type can belong
> only to one media type. I'm still looking for the indexing code where
> the media type assignement happens. Maybe I can change something there
> with a service class or some other hack ;-) .
>
> regards,
> Richard
>
> georg kuehnberger schrieb:
>> Richard,
>>
>> How about re-defining the dam types according to your needs:
>> dam/lib/tx_dam_types.php
>> and then optionally modifying the tca see
>> ext/dam/tca.php
>> according to your needs; should both be doable with an extension;
>>
>> regards georg
>>
>
More information about the TYPO3-project-dam
mailing list