[TYPO3-UG Italy] Campo non più obbligatorio in ext
Mauro Lorenzutti
mauro.lorenzutti at webformat.com
Wed Jan 5 18:09:27 CET 2011
Ciao Andrea,
prova ad aggiungere la riga che ti indico nel punto in cui la inserisco io:
Il 05/01/2011 16:17, Andrea Beltramo ha scritto:
> No, scusami ti mando tutto il file altrimenti non mi riesco a spiegare.
>
> Ecco il codice:
>
> <?php
> if (!defined ("TYPO3_MODE")) die ("Access denied.");
>
> t3lib_div::loadTCA("pages");
>
> $PAGES_TYPES = t3lib_div::array_merge(
> array(
> // Pagina uno
> '100' => array(
> 'icon' => 'pages.gif'
> ),
> // Pagina due
> '101' => array(
> 'icon' => 'pages.gif'
> ),
> ),
> $PAGES_TYPES
> );
>
> array_push(
> $TCA['pages']['columns']['doktype']['config']['items'],
> array('--- Prova ---',
> '--div--'),
> array('LLL:EXT:mia_est/locallang.php:pages.product.doktype', '100'),
> array('LLL:EXT:mia_est/locallang.php:pages.channel.doktype', '101')
> );
>
> $TCA['pages']['types'] = t3lib_div::array_merge(
> $TCA['pages']['types'],
> array(
> // Pagina uno
> '100' => array(
> 'showitem' => 'hidden;;;;1-1-1, doktype;;2;button,
> title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, abstract;;5;;3-3-3,
> keywords, description, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5,
> storage_pid;LLL:EXT:mia_est/locallang.php:pages.product.storage_pid_label;,
> l18n_cfg, fe_login_mode, module, content_from_pid',
> ),
> // Pagina due
> '101' => array(
> 'showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2,
> subtitle, nav_hide, url;;;;3-3-3, urltype,
> abstract;LLL:EXT:mia_est/locallang.php:pages.channel.abstract_label;;;;4-4-4,
> TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg',
> ),
> )
> );
>
> t3lib_div::loadTCA("tt_content");
> $TCA['tt_content']['types']['text'] = Array(
> 'showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, layout;;;;3-3-3,
> bodytext;;9;;:rte_transform[flag=rte_enabled|mode=ts];, rte_enabled,
> text_properties'
> );
>
> $TCA['tt_content']['columns']['header']['config'] = array(
> 'type' => 'text',
> 'cols' => '50',
> 'rows' => '3',
> );
>
> $TCA['pages']['columns']['title']['config']['type'] = 'text';
> $TCA['pages']['columns']['title']['config']['cols'] = '50';
> $TCA['pages']['columns']['title']['config']['rows'] = '4';
$TCA['pages']['columns']['url']['config']['eval']='trim';
> ?>
>
cancella la cache e dovrebbe funzionare.
Ciao,
--
Mauro Lorenzutti
CTO / Software Architect
mauro.lorenzutti at webformat.com
Tel. +39-0427-926.389
WEBFORMAT srl – www.webformat.com
Via S. Francesco d'Assisi, 6 – 20122 MILANO
Corte Europa, 12 - 33097 SPILIMBERGO (PN)
TYPO3 Certified Integrator
More information about the TYPO3-UG-Italy
mailing list