[TYPO3-dev] Show tt_content preview in page module via Fluid with more variables

Stefan Padberg post at bergische-webschmiede.de
Mon Aug 29 09:44:28 CEST 2016


Am 24.08.2016 um 17:19 schrieb Stefan Padberg:
> Hi,
> 
> I need a hint:
> 
> Here:
> <https://wiki.typo3.org/TYPO3.CMS/Releases/7.5/Feature/#Feature:_.69459_-_Show_tt_content_preview_in_page_module_via_Fluid>
> 
> is described how to configure the page module to render a preview of a
> single content element in Backend via Fluid.
> 
> Something like:
> 
> [Page TS]
> mod.web_layout.tt_content.preview.media =
> EXT:site_mysite/Resources/Private/Templates/Preview/Media.html
> [/Page TS]
> 
> The tt_content data set of the content element is available in Fluid.
> But nothing more.
> 
> How can I make some more variables available for Fluid?
> 
> For example the images?
> 

Patrick Broens gave me the hint:

Look at:
typo3_src-7.6.10/typo3/sysext/backend/Classes/View/PageLayoutView.php

method 'tt_content_drawItem'. There is a hook in this method which you
can use



I will use this hook to enrich the Fluid variables for the Backend
templates of the tt_content elements.

Regards
Stefan



-- 
Bergische Webschmiede
Dipl.-Ing. Stefan Padberg
TYPO3-Integrator und Webprogrammierer
:: Borner Str. 18 - 42349 Wuppertal
:: +49 202 97648355
:: +49 173 9219845
:: post at bergische-webschmiede.de
:: http://www.bergische-webschmiede.de



More information about the TYPO3-dev mailing list