Index: classes/class.tx_templavoila_label.php =================================================================== --- classes/class.tx_templavoila_label.php (revision 0) +++ classes/class.tx_templavoila_label.php (revision 0) @@ -0,0 +1,57 @@ + +* All rights reserved +* +* This script is part of the TYPO3 project. The TYPO3 project is +* free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* The GNU General Public License can be found at +* http://www.gnu.org/copyleft/gpl.html. +* +* This script is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* This copyright notice MUST APPEAR in all copies of the script! +***************************************************************/ + +/** + * Class 'tx_templavoila_label' for the 'templavoila' extension. + * + * This library contains several functions for displaying the labels in the list view. + * + * @author Michael Klapper + * @author + * @package TYPO3 + * @subpackage tx_templavoila + */ +class tx_templavoila_label { + + /** + * Retrive the label for TCAFORM title attribute. + * + * @param array $params Current record array + * @param object + * + * @access public + * @return void + * + * @author Michael Klapper + */ + public function getLabel(&$params, &$pObj) { + $params['title'] = $GLOBALS['LANG']->sL($params['row']['title']) + } +} + +if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/templavoila/class.tx_templavoila_label.php']) { + include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/templavoila/class.tx_templavoila_label.php']); +} + +?> \ No newline at end of file Index: ext_autoload.php =================================================================== --- ext_autoload.php (revision 31337) +++ ext_autoload.php (working copy) @@ -16,6 +16,7 @@ 'tx_templavoila_usedce' => $extensionPath . 'class.tx_templavoila_usedce.php', 'tx_templavoila_xmlrelhndl' => $extensionPath . 'class.tx_templavoila_xmlrelhndl.php', 'tx_templavoila_div' => $extensionPath . 'classes/class.tx_templavoila_div.php', + 'tx_templavoila_label' => $extensionPath . 'classes/class.tx_templavoila_label.php', 'tx_templavoila_preview_default' => $extensionPath . 'classes/preview/class.tx_templavoila_preview_default.php', 'tx_templavoila_preview_type_bullets' => $extensionPath . 'classes/preview/class.tx_templavoila_preview_type_bullets.php', 'tx_templavoila_preview_type_header' => $extensionPath . 'classes/preview/class.tx_templavoila_preview_type_header.php', Index: ext_tables.php =================================================================== --- ext_tables.php (revision 31337) +++ ext_tables.php (working copy) @@ -55,6 +55,7 @@ 'ctrl' => Array ( 'title' => 'LLL:EXT:templavoila/locallang_db.xml:tx_templavoila_tmplobj', 'label' => 'title', + 'label_userFunc' => 'EXT:templavoila/classes/class.tx_templavoila_label.php:&tx_templavoila_label->getLabel', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', @@ -75,6 +76,7 @@ 'ctrl' => Array ( 'title' => 'LLL:EXT:templavoila/locallang_db.xml:tx_templavoila_datastructure', 'label' => 'title', + 'label_userFunc' => 'EXT:templavoila/classes/class.tx_templavoila_label.php:&tx_templavoila_label->getLabel', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', @@ -94,7 +96,6 @@ t3lib_extMgm::allowTableOnStandardPages('tx_templavoila_datastructure'); t3lib_extMgm::allowTableOnStandardPages('tx_templavoila_tmplobj'); - // Adding access list to be_groups t3lib_div::loadTCA('be_groups'); $tempColumns = array ( Index: ext_tables.sql =================================================================== --- ext_tables.sql (revision 31337) +++ ext_tables.sql (working copy) @@ -21,7 +21,7 @@ fileref_mtime int(11) unsigned DEFAULT '0' NOT NULL, deleted tinyint(4) unsigned DEFAULT '0' NOT NULL, sorting int(11) unsigned DEFAULT '0' NOT NULL, - title varchar(100) DEFAULT '' NOT NULL, + title text, datastructure varchar(100) DEFAULT '' NOT NULL, fileref tinytext, templatemapping mediumblob, @@ -62,7 +62,7 @@ cruser_id int(11) unsigned DEFAULT '0' NOT NULL, deleted tinyint(4) unsigned DEFAULT '0' NOT NULL, sorting int(11) unsigned DEFAULT '0' NOT NULL, - title varchar(100) DEFAULT '' NOT NULL, + title text, dataprot mediumtext, scope tinyint(4) unsigned DEFAULT '0' NOT NULL, previewicon tinytext, Index: tca.php =================================================================== --- tca.php (revision 31337) +++ tca.php (working copy) @@ -14,7 +14,6 @@ 'config' => Array ( 'type' => 'input', 'size' => '48', - 'max' => '60', 'eval' => 'required,trim', ) ), @@ -206,7 +205,6 @@ 'config' => Array ( 'type' => 'input', 'size' => '48', - 'max' => '60', 'eval' => 'required,trim', ) ),