[TYPO3-english] $TCA image filelist-module is not beening updated

Muriel le Pair typo3 at strangefruit.nl
Mon Jan 9 14:49:58 CET 2017


Op 04-01-17 om 18:39 schreef Jacco van der Post:

> It ain't that hard ;-) Simple example;

> In the TCA of the record:
>
>         'thumbnail' => [
>             'label' => 'bla',
>             'config' =>
> \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
>                 'thumbnail',
>                 array(
>                     'appearance' => [
>                         'createNewRelationLinkTitle' =>
> 'LLL:EXT:cms/locallang_ttc.xlf:media.addFileReference'
>                     ],
>                     'maxitems' => 1,
>                 ),
>                 $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
>             ),
>         ],

Thanks for your extensive example. I still find it very hard, can't get 
it to work.

Maybe I wasn't clear enough. I will try to explain myself a little better.

If you have a RTE text field in an extension and link in the text to an 
image the softref takes care of it so that the reference list is updated.

So if you check the number of references for this file in the 
filelist-module in increased (if you leave this line out the reference 
is not updated).

TCA:
'text' => array(
	'config' => array(
		'softref' => 'rtehtmlarea_images,typolink_tag,images,email[subst],url',
				
		),		
	),

In order to get it working for images i tried adding the following line 
(only this has no effect at all): 'softref' => 'ext_fileref',

'image' => array(
	'exclude' => 1,
	'label' => 
'LLL:EXT:sf_accordion/Resources/Private/Language/locallang_db.xlf:tx_sfaccordion_domain_model_items.image',
	'config' => array(
		'type' => 'group',
		'internal_type' => 'file',
		'uploadfolder' => 'uploads/tx_sfaccordion',
		'show_thumbs' => 1,
		'size' => 5,
		'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
		'disallowed' => '',
		'softref' => 'ext_fileref',
					
	),
),

Steps to reproduce:
1) Add a image to an extension
2) Check the number of references for this file in the filelist-module
3) The number should get increased, but it doesn't (it does work in 
works tx_news and with content element's)

--
kind regards,

Muriel le Pair



More information about the TYPO3-english mailing list