[FEATURE] Add description-field for filemounts 85/40285/3
authorDaniel Maier <dani-maier@gmx.de>
Tue, 16 Jun 2015 10:08:36 +0000 (12:08 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 17 Jun 2015 13:56:27 +0000 (15:56 +0200)
With the new field it is possible to give a short description what a
certain filemount should be used for or which documents they contain, etc.

Change-Id: Ia0e9d8385d8a6f0620b20581f4acc497dc9ffca9
Resolves: #59570
Releases: master
Reviewed-on: http://review.typo3.org/40285
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Felix Kopp <felix-source@phorax.com>
Tested-by: Felix Kopp <felix-source@phorax.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Configuration/TCA/sys_filemounts.php
typo3/sysext/core/Documentation/Changelog/master/Feature-59570-AddDescriptionFieldForFilemounts.rst [new file with mode: 0644]
typo3/sysext/core/ext_tables.sql

index b356df5..1549313 100644 (file)
@@ -18,7 +18,7 @@ return array(
                'searchFields' => 'title,path'
        ),
        'interface' => array(
-               'showRecordFieldList' => 'title,hidden,path,base'
+               'showRecordFieldList' => 'title,hidden,path,base,description'
        ),
        'columns' => array(
                'title' => array(
@@ -36,6 +36,15 @@ return array(
                                'type' => 'check'
                        )
                ),
+               'description' => array(
+                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.description',
+                       'config' => array(
+                               'type' => 'text',
+                               'rows' => 5,
+                               'cols' => 30,
+                               'max' => '2000',
+                       )
+               ),
                'base' => array(
                        'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.baseStorage',
                        'config' => array(
@@ -61,7 +70,7 @@ return array(
                ),
        ),
        'types' => array(
-               '0' => array('showitem' => '--palette--;;mount, base, path, read_only')
+               '0' => array('showitem' => '--palette--;;mount, description, base, path, read_only')
        ),
        'palettes' => array(
                'mount' => array('showitem' => 'title,hidden', 'canNotCollapse' => 1)
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-59570-AddDescriptionFieldForFilemounts.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-59570-AddDescriptionFieldForFilemounts.rst
new file mode 100644 (file)
index 0000000..3808285
--- /dev/null
@@ -0,0 +1,16 @@
+======================================================
+Feature: #59570 - Add description-field for filemounts
+======================================================
+
+Description
+===========
+
+A new field "description" has been added to the table sys_filemounts.
+With the new field it is possible to give a short description what a
+certain filemount should be used for or which documents it contains, etc.
+
+
+Impact
+======
+
+The new field is optional and can be used in all projects.
\ No newline at end of file
index 05baa4c..afaf12b 100644 (file)
@@ -225,6 +225,7 @@ CREATE TABLE sys_filemounts (
        pid int(11) unsigned DEFAULT '0' NOT NULL,
        tstamp int(11) unsigned DEFAULT '0' NOT NULL,
        title varchar(30) DEFAULT '' NOT NULL,
+       description varchar(2000) DEFAULT '' NOT NULL,
        path varchar(120) DEFAULT '' NOT NULL,
        base int(11) unsigned DEFAULT '0' NOT NULL,
        hidden tinyint(3) unsigned DEFAULT '0' NOT NULL,