Typo3 6.2.x sys_category renderMode

时间:2015-02-17 16:06:40

标签: typo3 typoscript typo3-6.2.x

我们使用带有tx_news扩展名(3.1.0)的Typo3 6.2.9和一堆sys_category对象。

在FrontEnd中,每篇文章都有一个链接到" primary"类别页面 - 这意味着我们使用模板中的newsItem.categories.0.uid链接到类别新闻页面。

我知道支持排序是因为我手动交换了文章的两个sys_category_record_mm条目的排序值。

update sys_category_record_mm set sorting_foreign=<sortingvalue1> where uid_local = <sys_category_uid2> and uid_foreign = <tx_news_domain_model_news_uid>; update sys_category_record_mm set sorting_foreign=<sortingvalue2> where uid_local = <sys_category_uid1> and uid_foreign = <tx_news_domain_model_news_uid>;

我也知道我的root页面的pageconfig中的以下行禁用了category字段:
TCEFORM.tx_news_domain_model_news.categories.disabled = 1

因此我知道

TCEFORM.tx_news_domain_model_news.categories

说明正确的字段。

现在我想更改新闻项的categories字段的renderMode。默认的renderMode&#34;树&#34;不支持对类别进行排序。 enter image description here

这就是为什么我想将它更改为旧版Typo3版本中使用的版本,这个版本仍然与标签一起使用。 enter image description here

我试过了:

TCEFORM.tx_news_domain_model_news {
categories{

        select >
        group >
        check >
        group {
             size = 5
             autoSizeMax = 10 
             max_size = 10 
             show_thumbs = 0 
             maxitems = 100 
             minitems = 0 
             disable_controls = 0
        }
}

TCEFORM.tx_news_domain_model_news {
categories{

        config.select.renderMode = singlebox
}

TCEFORM.tx_news_domain_model_news {
categories{

        config.renderMode = singlebox
}

以及其他变种。

有谁知道我做错了什么?

1 个答案:

答案 0 :(得分:0)

据我所知,您无法在选择树中对类别进行排序。

但你可以对它们进行分类 刚到你创建类别的页面/文件夹 - 确保在列表模块上 - 你有排序按钮。

list module - data storage - see the order 列表模块 - 数据存储 - 查看订单

category selection tree - compare with the order above
类别选择树 - 与上面的顺序进行比较