[TYPO3-dev] TCA user type - required

Boros Attila attila at thebat.net
Tue May 18 17:20:01 CEST 2010


Hello Steffen,

Tuesday, May 18, 2010, 5:24:27 PM, you wrote:

SK> Hi,

SK> Boros Attila schrieb:
>> 
>> I don't understand how could I use the $this pointer in my code, I
>> have:
>> 
>> class tx_chrsites_tca{
>>  public function myField($PA, $fObj)
>>  {
>>   ...
>>  }
>> }
>> 

it's $fObj->>requiredFields

SK> debug it ;)

Thanks a lot:) I ended up with:

 $fObj->requiredFields['tableName' . $PA['row']['uid'] . 'fieldName'] =
 'data[tableName][' . $PA['row']['uid'] . '][' . 'fieldName' . ']';

It works, just a minor thing: this is in a tabbed form and normally if
the value is empty I get a yellow exclamation mark near the tab name
and near the input field. With this little trick the yellow
exclamation mark appears only near the input field, and when that tab
is not active it can't be seen. Any hints?

--
Attila





More information about the TYPO3-dev mailing list