[TYPO3-english] Re: Image in Custom Content Element

Adrian O. adrian.ohlhausen at googlemail.com
Mon Nov 13 11:32:26 CET 2017


Hello,

if I understood that right, i needed to add a Files or Gallery Processor to the new Content Element. Which i did with the following code.
Now if I look at the {_all} Variable with <f:debug>{_all}</f:debug> I can see that htere is a {gallery} variable, and a {gallery.rows} variable. But it is empty:

Extbase Variable Dump

array(4 items)
   data => array(78 items)
   current => NULL
   files => array(empty)
   gallery => array(6 items)
      position => array(3 items)
      width => 600 (integer)
      count => array(3 items)
      columnSpacing => 10 (integer)
      border => array(3 items)
      rows => array(empty)



What am I doing wrong?

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '
	tt_content.TextOnSlide = COA
	tt_content.TextOnSlide {
		10 = FLUIDTEMPLATE
		10 {
			file = EXT:TextOnSlide/Resources/Private/Template.html
			dataProcessing {
				10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
				10 {
					references.fieldName = assets
				}
				20 = TYPO3\CMS\Frontend\DataProcessing\GalleryProcessor
				20 {
					maxGalleryWidth = {$styles.content.textmedia.maxW}
					maxGalleryWidthInText = {$styles.content.textmedia.maxWInText}
					columnSpacing = {$styles.content.textmedia.columnSpacing}
					borderWidth = {$styles.content.textmedia.borderWidth}
					borderPadding = {$styles.content.textmedia.borderPadding}
				}
			}
		}
	}
');


More information about the TYPO3-english mailing list