cart icon indicating copy to clipboard operation
cart copied to clipboard

Improve tt_content rendering

Open parzerphilipp opened this issue 8 years ago • 1 comments

The tt_content rendering doesn't work quite well with custom content elements.

In the Product/Show.html Template ~ 55 you use: <f:cObject typoscriptObjectPath="tt_content.{content.contentType}.20" data="<cart:mapModelPropertiesToTableColumns class='Extcode\\Product\\Domain\\Model\\TtContent' table='tt_content' data='{content}' />"/>

I would recommend following replacement: <f:cObject typoscriptObjectPath="lib.renderContent" data="{content.uid}" />

and following TS in the setup.txt:

lib.renderContent = RECORDS lib.renderContent { source.current = 1 tables = tt_content dontCheckPid = 1 conf.tt_content =< tt_content }

parzerphilipp avatar Sep 09 '17 14:09 parzerphilipp

I'll add some tests and than add this to 4.x and 5.x.pre.

extcode avatar Nov 21 '17 23:11 extcode