[TYPO3-english] BE sorting not work

Philipp Gampe typo3.lists at philippgampe.info
Tue Nov 15 09:00:27 CET 2011


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
-- 
Philipp Gampe


More information about the TYPO3-english mailing list