错字3:如何在前端看到扩展记录的排序?

时间:2014-06-06 08:26:10

标签: typo3

如果记录在后端可排序,则在前端中不会隐式遵守此分类。 需要设置什么,以使$this->extensionRepository->findAll()方法按排序顺序返回记录? (其中“扩展名”是extesion的名称)

1 个答案:

答案 0 :(得分:4)

将这些行添加到ExtensionRepository.php(而#34; Extension"是您的扩展名):

protected $defaultOrderings = array(
    'sorting' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING,
);
相关问题