Feature-64535-IrreSuppressAndOverrideUseCombinationWarningViaTcaSettings.rst 1.36 KB
Newer Older
1
2
3
4
5
6
7
================================================================================================
Feature: #64535 - IRRE: Suppress and override useCombination warning via TCA settings
================================================================================================

Description
===========

8
When using ``useCombination=TRUE`` there is always a FlashMessage warning displayed.
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
It is now possible to override the default warning message with a custom message or
to suppress the FlashMessage completely via TCA setting.

Example to suppress useCombination warning message:

.. code-block:: php

	$GLOBALS['TCA']['tx_demo_domain_model_demoinline']['columns']['irre_records']['config'] = array(
		'foreign_types_combination' => array(
			'1' => array(
				'showitem' => 'title'
			)
		)
		'appearance' => array(
			'suppressCombinationWarning' => TRUE
			'useCombination' => TRUE
		)
	)

Example to override useCombination warning message:

.. code-block:: php

	$GLOBALS['TCA']['tx_demo_domain_model_demoinline']['columns']['irre_records']['config'] = array(
		'foreign_types_combination' => array(
			'1' => array(
				'showitem' => 'title'
			)
		)
		'appearance' => array(
			'overwriteCombinationWarningMessage' => 'LLL:EXT:demo/Resources/Private/Language/locallang_db.xlf:tx_demo_domain_model_demoinline.irre_records.useCombinationWarning'
			'useCombination' => TRUE
		)
	)