2017-02-10 80 views
0

设置'foreign_sortby'=>'datum';这个字段现在在我的编辑蒙版中缺失。有人知道为什么吗?TYPO3(7.6.14)Extbase TCA:设置完后的掩码字段丢失

TCA tx_veranstaltungen_domain_model_terminblock(1个terminblock可以有多个termine)

'termine' => array(
     'exclude' => 1, 
     'label' => 'LLL:EXT:veranstaltungen/Resources/Private/Language/locallang_db.xlf:tx_veranstaltungen_domain_model_terminblock.termine', 
     'config' => array(
      'type' => 'inline', 
      'foreign_table' => 'tx_veranstaltungen_domain_model_termin', 
      'foreign_field' => 'terminblock', 
      'foreign_sortby' => 'datum', 
      'maxitems' => 9999, 
      'appearance' => array(
       'collapseAll' => 0, 
       'levelLinksPosition' => 'top', 
       'showSynchronizationLink' => 1, 
       'showPossibleLocalizationRecords' => 1, 
       'useSortable' => 1, 
       'showAllLocalizationLink' => 1 
      ), 
     ), 

    ), 

回答

0

好吧,我发现了什么问题,阅读Bug report

后,您应该foreign_default_sortby改用foreign_sortby,因为IRRE隐藏您用于排序的字段。事实上,危险,该字段可能会被“排序值”覆盖。所以我想知道为什么我所有的字段(类型日期(时间戳))的值为01.01.1970 ...因为字段值更改为1,2,...

我希望这可以帮助别人,之前他们破坏他们的数据。 :)

(我使用Typo3 7.6.14)