[TYPO3-dam-devel] RFC #12778: Add softref parser for related DAM records

Thorsten Kahler thorsten.kahler at dkd.de
Tue Mar 23 22:01:18 CET 2010


Hi Michiel,

schrieb Michiel Roos [netcreators] am 17.03.10 09:35:
>> DAM already provides some "softref parsers" to keep track of DAM records
>> related to text fields (usually RTE fields). Since mm-relations to DAM
>> aren't defined as "normal" TYPO3 relations, a softref parser for records
>> related via tx_dam_mm_ref is also necessary.
>>
>> The attached patch adds a softref parser function to class
>> tx_dam_softrefproc and registers it in file tca_media_field.php to all
>> TCA definitions generated by an API call to txdam_getMediaTCA().
>>
>> Note: the softrefs are required to include ((static) references to) DAM
>> records in .t3d exports.
>>
> 
> Can you please briefly describe the teps to reproduce. . . uh, steps to
> test.
> 

typical failure: the most important sentence put at the bottom :-}

In brief the steps to reproduce:
* create a CE of type "Text w/image"
* link an image in bodytext (RTE) of that CE
* link an image using "Images" (fieldstx_damttcontent_files)
* start a .t3d export of the page containing the new CE
** set "Include tables": tt_content
** set "Use static relations for tables": tx_dam (you can use "Include
relations to tables" here as well; in this setup it may show you, that
the relations to tx_dam_cat records are not exported)

==>
* without patch only the DAM record linked in the bodytext field is exported
* with patch the image linked in tx_damttcontent_files is exported as well

(Including the files themselves in the export isn't covered yet, neither
by the existing code nor by the patch; but that's a different story)


Best regards
Thorsten


-- 

Thorsten Kahler
thorsten.kahler at dkd.de


More information about the TYPO3-team-dam mailing list