[TYPO3-dev] How to access TCA-fields in the Fluid template for a custom content element

Olle Haerstedt o.haerstedt at bitmotion.de
Tue Mar 3 09:26:07 CET 2015


Hi!

Posted this on stackoverflow but got now response. Maybe someone here can help?

I've created a custom content element called cat_but (category button). I've added TCA 
and content element wizard without problem. The category button have only one field: sys_category. 
Exactly one category should be selected. From this, I want to render a link action to a controller 
using that category as argument. But how would I access the sys_category field from the Fluid
 template for the content element? There is no PHP class associated to the element, no? Or can
 I fetch sys_category from Typoscript? Or could I access the tt_content from a view helper?

Thank you!
Olle



More information about the TYPO3-dev mailing list