From 288e3d00fb864d15547e2418a54e4bfc0b7c7a77 Mon Sep 17 00:00:00 2001 From: mabolek Date: Mon, 11 Feb 2019 20:34:38 +0100 Subject: [PATCH] [TASK] Using karma source and issuer action in list --- .../TCA/tx_karma_domain_model_ledgerentry.php | 2 +- extensions/karma/Configuration/TypoScript/setup.txt | 4 ++-- .../karma/Resources/Private/Language/locallang_db.xlf | 8 +++++++- .../Resources/Private/Templates/UserDisplay/List.html | 4 +++- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/extensions/karma/Configuration/TCA/tx_karma_domain_model_ledgerentry.php b/extensions/karma/Configuration/TCA/tx_karma_domain_model_ledgerentry.php index 443dbda..55ebd9f 100644 --- a/extensions/karma/Configuration/TCA/tx_karma_domain_model_ledgerentry.php +++ b/extensions/karma/Configuration/TCA/tx_karma_domain_model_ledgerentry.php @@ -18,7 +18,7 @@ $tx_karma_domain_model_ledgerentry = [ 'iconfile' => 'EXT:karma/Resources/Public/Icons/tx_karma_domain_model_ledgerentry.svg', ], 'interface' => [ - 'showRecordFieldList' => 'pid,hidden,starttime,endtime,expired,immutable_value,mutable_value,karma_source,campaign,user' + 'showRecordFieldList' => 'pid,hidden,starttime,endtime,expired,immutable_value,mutable_value,karma_source,issuer,issuer_action,campaign,user' ], 'columns' => [ 'hidden' => [ diff --git a/extensions/karma/Configuration/TypoScript/setup.txt b/extensions/karma/Configuration/TypoScript/setup.txt index c6c5c1a..7dbbb9a 100644 --- a/extensions/karma/Configuration/TypoScript/setup.txt +++ b/extensions/karma/Configuration/TypoScript/setup.txt @@ -18,7 +18,7 @@ plugin.tx_karma { userProfileChange { newUserWasCreated { sourceCode = useraction - label = Created my.typo3.org User + label = Created User valueEarned = 10 } } @@ -26,7 +26,7 @@ plugin.tx_karma { sourceCodes { useraction { - label = my.typo3.org User Action + label = typo3.org User } } } diff --git a/extensions/karma/Resources/Private/Language/locallang_db.xlf b/extensions/karma/Resources/Private/Language/locallang_db.xlf index b182721..77eb396 100644 --- a/extensions/karma/Resources/Private/Language/locallang_db.xlf +++ b/extensions/karma/Resources/Private/Language/locallang_db.xlf @@ -28,7 +28,13 @@ Mutable Value - Karma Source + Karma Source Code + + + Issuer Code/source> + + + Issuer Action Code Campaign diff --git a/extensions/karma/Resources/Private/Templates/UserDisplay/List.html b/extensions/karma/Resources/Private/Templates/UserDisplay/List.html index 73868b4..82ddea3 100644 --- a/extensions/karma/Resources/Private/Templates/UserDisplay/List.html +++ b/extensions/karma/Resources/Private/Templates/UserDisplay/List.html @@ -12,7 +12,9 @@ {entry.crdate -> f:format.date(format:'j F, Y')} - {entry.karmaSource} {entry.issuer} {entry.issuerAction} + {settings.sourceCodes.{entry.karmaSource}.label}: + {settings.issuers.{entry.issuer}.{entry.issuerAction}.label} + {entry.immutableValue} {entry.mutableValue} -- GitLab