From 4aae2a96eb7fb469cf4b1921f5212bb761150fe5 Mon Sep 17 00:00:00 2001 From: Praesidiarius Date: Thu, 30 Jan 2020 20:35:10 +0100 Subject: [PATCH] select field support for indextables --- module/Application/config/module.config.php | 11 +++++++++++ module/Application/view/partial/indextablecell.phtml | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/module/Application/config/module.config.php b/module/Application/config/module.config.php index 1351e19..c56183a 100644 --- a/module/Application/config/module.config.php +++ b/module/Application/config/module.config.php @@ -119,4 +119,15 @@ __DIR__ . '/../view', ], ], + # Translator + 'translator' => [ + 'locale' => 'de_DE', + 'translation_file_patterns' => [ + [ + 'type' => 'gettext', + 'base_dir' => __DIR__ . '/../language', + 'pattern' => '%s.mo', + ], + ], + ], ]; diff --git a/module/Application/view/partial/indextablecell.phtml b/module/Application/view/partial/indextablecell.phtml index 8a09056..54890bb 100644 --- a/module/Application/view/partial/indextablecell.phtml +++ b/module/Application/view/partial/indextablecell.phtml @@ -4,6 +4,11 @@ * Get Column Data based on type */ switch($this->oCol->type) { + case 'select': + if($this->oItem->getSelectFieldID($this->oCol->fieldkey) != 0) { + echo $this->oItem->getSelectField($this->oCol->fieldkey)->getLabel(); + } + break; case 'text': case 'email': if($this->oCol->url_view != '') {