diff --git a/src/CustomElements.php b/src/CustomElements.php index a51fe9a..d301bd2 100644 --- a/src/CustomElements.php +++ b/src/CustomElements.php @@ -481,7 +481,7 @@ protected function createDca($dc, $type, $createFromPost = false, $tmpField = nu ); $GLOBALS['TL_DCA'][$dc->table]['fields']['customTpl']['options_callback'] = function($dc) { - $templates = \Controller::getTemplateGroup($dc->activeRecord->type); + $templates = \Controller::getTemplateGroup($dc->activeRecord->type.'_', [], $dc->activeRecord->type); foreach ($templates as $key => $label) { if (substr($key, -7) === '_config' || $key === $dc->activeRecord->type) { unset($templates[$key]);