Skip to content

Commit

Permalink
Merge tag '3.6.6'
Browse files Browse the repository at this point in the history
Hotfix release 3.6.6

- Fix add symfony translator to readme
- Add a new entry in TL_LANG, because Contao 5.x has dropped the support of MSC.wordWrap.
  • Loading branch information
stefanheimes committed Apr 11, 2024
2 parents c705cc2 + 02b50b5 commit 3355c08
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
31 changes: 22 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ Developers should add the Multicolumnwizard to their `composer.json` as a depend

```php
<?php

$GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = [
'label' => &$GLOBALS['TL_LANG']['tl_theme']['templateSelection'],
'exclude' => true,
Expand Down Expand Up @@ -60,16 +59,13 @@ $GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = [
],
'sql' => 'blob NULL',
];

?>
```


### Usage with callback

```php
<?php

$GLOBALS['TL_DCA']['tl_table']['fields']['anything'] = [
'label' => &$GLOBALS['TL_LANG']['tl_table']['anything'],
'exclude' => true,
Expand All @@ -80,16 +76,13 @@ $GLOBALS['TL_DCA']['tl_table']['fields']['anything'] = [
],
'sql' => 'blob NULL',
];

?>
```


### Disable Drag and Drop

```php
<?php

$GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = [
'label' => &$GLOBALS['TL_LANG']['tl_theme']['templateSelection'],
'exclude' => true,
Expand All @@ -108,15 +101,13 @@ $GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = [
],
'sql' => 'blob NULL',
];

?>
```

### Hide buttons

```php
<?php

$GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = [
'label' => &$GLOBALS['TL_LANG']['tl_theme']['templateSelection'],
'exclude' => true,
Expand Down Expand Up @@ -145,6 +136,28 @@ $GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = [
],
'sql' => 'blob NULL',
];
?>
```

### Other parameters

From version 3.6.5:

The Symfony translator can be used to translate the label and description. To do this, set the `useTranslator`
key to true.

```php
<?php
$GLOBALS['TL_DCA']['tl_theme']['fields']['anything'] = [
//...
'inputType' => 'multiColumnWizard',
'eval' => [
'useTranslator' => true,
// ...
],
];
?>
```

The descriptions of the columns are displayed in the column header as a tooltip next to the appendix `(i)`
- the character or text can be changed in the language file.
1 change: 1 addition & 0 deletions src/Resources/contao/languages/de/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@
$GLOBALS['TL_LANG']['MSC']['tw_rmove'] = 'Die Reihe verschieben.';
$GLOBALS['TL_LANG']['MSC']['fileManager'] = 'Dateiverwaltung';
$GLOBALS['TL_LANG']['MSC']['description_char'] = 'i';
$GLOBALS['TL_LANG']['MSC']['wordWrap'] = 'Zeilenumbruch';
1 change: 1 addition & 0 deletions src/Resources/contao/languages/en/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@
$GLOBALS['TL_LANG']['MSC']['tw_rmove'] = 'Move the row.';
$GLOBALS['TL_LANG']['MSC']['fileManager'] = 'File manager';
$GLOBALS['TL_LANG']['MSC']['description_char'] = 'i';
$GLOBALS['TL_LANG']['MSC']['wordWrap'] = 'Word wrap';

0 comments on commit 3355c08

Please sign in to comment.