[TYPO3-UG Italy] Campo non più obbligatorio in ext
Federico Bernardin
federico at bernardin.it
Wed Jan 5 17:59:36 CET 2011
Ciao Andrea,
il tutto è un po oscuto, ma mi pare di capire che crei altri 2 tipi di pagina e che in base al tipo di pagina mostri dei campi o meno.
Poi hai modificato il tt_content relativamente al tipo text ed hai rimosso delle proprietà.
Probabilmente il problema è in uno dei campi della pagina che tu hai nascosto che non può essere vuoto, bisognerebbe vedere tra i campi del tca delle pagine per evedre tra i campi che tu hai rimosso se c'è un campo obbligatorio, oppure lo stesso sul tipo text, in base a dove ti compare l'errore.
Ciao
Federico
Il giorno 05/gen/2011, alle ore 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';
> ?>
>
>
> Si capisce qualcosa?
>
> Grazie,
> A.
>
> Il giorno 05 gennaio 2011 15:39, Mauro Lorenzutti <
> mauro.lorenzutti at webformat.com> ha scritto:
>
>>
>> questa riga è solo l'inclusione dei campi nella form. La definizione del
>> formato e delle proprietà di ciascun campo dovrebbe essere presente nello
>> stesso file qualche riga sopra.
>>
> _______________________________________________
> TYPO3-UG-Italy mailing list
> TYPO3-UG-Italy at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-italy
More information about the TYPO3-UG-Italy
mailing list