[TYPO3-mvc] content element extension with content element in it

Muriel le Pair typo3 at strangefruit.nl
Fri Jan 16 16:16:19 CET 2015


Hi,

I have a content element extension. Basic it's an accordion menu with 
title and text. I would also like to add the option to add a content 
element instead of the text.

The TCA (below) works, only this will also add the content element to 
the page.

So is it for instance possible to store the content element when saving 
in a separate storage folder?


'contentelement' => array(
	'exclude' => 1,
	'label' => 
'LLL:EXT:sf_accordion/Resources/Private/Language/locallang_db.xlf:tx_sfaccordion_domain_model_items.contentelement',
	'config' => array(
		'type' => 'inline',
		'languageMode' => 'inherit',

		'foreign_table' => 'tt_content',
		'foreign_table_where' => 'ORDER BY tt_content.uid',
		'size' => 1,
		'minitems' => 0,
		'maxitems' => 1,

		'behaviour' => array(
			'localizationMode' => 'select',
					'localizeChildrenAtParentLocalization' => 1,
				),
		'appearance' => array(
						'showPossibleLocalizationRecords' => 1,
			'showAllLocalizationLink' => 1,
			'showSynchronizationLink' => 1,
			'useSortable' => 1,
			'newRecordLinkPosition' => 'bottom',
		),
	),
),

--
kind regards,

Muriel le Pair


More information about the TYPO3-project-typo3v4mvc mailing list