Skip to content

Commit

Permalink
fix header tags dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Kaltofen committed May 6, 2019
1 parent 532d088 commit cd8c9a1
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/Resources/contao/dca/tl_reader_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
'sql' => "varchar(128) NOT NULL default ''",
],
// filter
'filter' => [
'filter' => [
'label' => &$GLOBALS['TL_LANG']['tl_reader_config']['filter'],
'exclude' => true,
'inputType' => 'select',
Expand Down Expand Up @@ -297,15 +297,15 @@
'label' => $GLOBALS['TL_LANG']['tl_reader_config']['headTags_service'],
'inputType' => 'select',
'options' => \Contao\System::getContainer()->getParameter('huh.head.tags'),
'eval' => ['groupStyle' => 'width:20%', 'includeBlankOption' => true]
'eval' => ['groupStyle' => 'width:20%', 'includeBlankOption' => true, 'decodeEntities' => true]
],
'pattern' => [
'label' => $GLOBALS['TL_LANG']['tl_reader_config']['headTags_pattern'],
'inputType' => 'text',
'eval' => ['groupStyle' => 'width:70%']
]
]
]
],
],
'sql' => "blob NULL"
],
Expand Down Expand Up @@ -341,15 +341,14 @@
'' // set in modifyPalette
);

if (System::getContainer()->get('huh.utils.container')->isBundleActive('Terminal42\DcMultilingualBundle\Terminal42DcMultilingualBundle'))
{
if (System::getContainer()->get('huh.utils.container')->isBundleActive('Terminal42\DcMultilingualBundle\Terminal42DcMultilingualBundle')) {
$dca['fields'] += [
'addDcMultilingualSupport' => [
'label' => &$GLOBALS['TL_LANG']['tl_reader_config']['addDcMultilingualSupport'],
'exclude' => true,
'inputType' => 'checkbox',
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''"
'label' => &$GLOBALS['TL_LANG']['tl_reader_config']['addDcMultilingualSupport'],
'exclude' => true,
'inputType' => 'checkbox',
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''"
]
];
}
Expand Down

0 comments on commit cd8c9a1

Please sign in to comment.