[FEATURE] Reference description field 02/43602/2
authorFrancois Suter <francois@typo3.org>
Sun, 27 Sep 2015 16:51:40 +0000 (18:51 +0200)
committerFrancois Suter <francois@typo3.org>
Sun, 27 Sep 2015 16:53:07 +0000 (18:53 +0200)
Since a description field already exists, reference it
for display in TYPO3 CMS 7 using the new descriptionColumn
TCA property.

Also clean up the TCA.

Resolves: #70139
Releases: 2.0
Change-Id: I7f506062d91cafcff46ed9095c08af2563675913
Reviewed-on: http://review.typo3.org/43602
Reviewed-by: Francois Suter <francois@typo3.org>
Tested-by: Francois Suter <francois@typo3.org>
ChangeLog
Configuration/TCA/tx_dataquery_queries.php

index 4cd40d0..112bb3a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Fixed crashing query check wizard, resolves #70136
        * Ensured compatibility with TYPO3 CMS 7.5, resolves #70137
+       * Added reference to description field, resolves #70139
 
 2015-06-09 Francois Suter (Cobweb)  <typo3@cobweb.ch>
 
index e0de765..f1ed9a9 100644 (file)
@@ -3,10 +3,11 @@ if (!defined ('TYPO3_MODE'))  die ('Access denied.');
 
 return array(
        'ctrl' => array (
-               'title'     => 'LLL:EXT:dataquery/locallang_db.xml:tx_dataquery_queries',
-               'label'     => 'title',
-               'tstamp'    => 'tstamp',
-               'crdate'    => 'crdate',
+               'title' => 'LLL:EXT:dataquery/locallang_db.xml:tx_dataquery_queries',
+               'label' => 'title',
+               'descriptionColumn' => 'description',
+               'tstamp' => 'tstamp',
+               'crdate' => 'crdate',
                'cruser_id' => 'cruser_id',
                'versioningWS' => TRUE,
                'origUid' => 't3_origuid',
@@ -26,7 +27,7 @@ return array(
        ),
        'columns' => array(
                't3ver_label' => array(
-                       'label'  => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
+                       'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
                        'config' => array(
                                'type' => 'input',
                                'size' => '30',
@@ -162,8 +163,10 @@ return array(
                ),
        ),
        'types' => array(
-               '0' => array('showitem' => 'hidden;;;;1-1-1, title;;1;;2-2-2, sql_query;;;;3-3-3, fulltext_indices,
-                                                                       --div--;LLL:EXT:dataquery/locallang_db.xml:tx_dataquery_queries.tab.advanced, cache_duration;;;;1-1-1, ignore_enable_fields;;2;;2-2-2 , ignore_language_handling;;3;;3-3-3, get_versions_directly')
+               '0' => array(
+                       'showitem' => 'hidden, title;;1, sql_query, fulltext_indices,
+                                                       --div--;LLL:EXT:dataquery/locallang_db.xml:tx_dataquery_queries.tab.advanced, cache_duration, ignore_enable_fields;;2, ignore_language_handling;;3, get_versions_directly'
+               )
        ),
        'palettes' => array(
                '1' => array('showitem' => 'description'),