[TYPO3-english] [Solved] BE sorting not work

Rayuth You rayuth at web-essentials.asia
Tue Nov 15 11:17:14 CET 2011


On 11/15/2011 03:00 PM, Philipp Gampe wrote:
> Rayuth You wrote:
>
>> On 11/14/2011 10:35 PM, Philipp Gampe wrote:
>>> Hi,
>>>
>>> Rayuth You wrote:
>>>
>>>>>> By adding new field 'sorting' into my table, in BE list when I click
>>>>>> sorting, it did not generated number into field 'sorting'.
>>>>>> In TCA I put 'sortby' =>    'sorting'.
>>>>>>
>>>>>> Need I do more in TCA? or what I need to do?
>>>
>>> Can you check whether your added field shows up in TCA?
>>> You can do so in backend using the module configuration and switching
>>> this to "table configuration array ($TCA)". There you can browse your
>>> full TCA.
>>>
>>> Best regards
>>
>> Hi
>>
>> You are right, when I check "table configuration array ($TCA)" I found
>> no 'sorting'.
>> But when I added:
>> 'sorting' =>  array(
>> 'config' =>  array(
>> 'type' =>  'input',
>> 'size' =>  30,
>> )
>> ),
>>
>> It's still not work.
>>
>> Did I configure anything wrong?
>
> I think you will have to load the TCA first:
>
> // see
> http://api.typo3.org/typo3v4/current/html/classt3lib__div.html#ac12096133c4044127e635ca11f45b0f5
> t3lib_div::loadTCA("tx_your-table");
> t3lib_extMgm::addTCAcolumns("tx_your-table",$tempColumns,1);
>
> While $tempColumns is your array.
>
> Best regards

Hi Philipp

Thank you so much for your help. Now it works, I think because of the cache.

Best regards,
Rayuth


More information about the TYPO3-english mailing list