Skip to content

Commit

Permalink
select field support for indextables
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Jan 30, 2020
1 parent 9ee74ca commit 4aae2a9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions module/Application/config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,15 @@
__DIR__ . '/../view',
],
],
# Translator
'translator' => [
'locale' => 'de_DE',
'translation_file_patterns' => [
[
'type' => 'gettext',
'base_dir' => __DIR__ . '/../language',
'pattern' => '%s.mo',
],
],
],
];
5 changes: 5 additions & 0 deletions module/Application/view/partial/indextablecell.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '') {
Expand Down

0 comments on commit 4aae2a9

Please sign in to comment.