【问题标题】:Typo3 6.2.x sys_category renderModeTypo3 6.2.x sys_category 渲染模式
【发布时间】:2015-04-18 09:34:32
【问题描述】:

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

在 FrontEnd 中,每篇文章都有一个指向其“主要”类别页面的链接——这意味着我们使用模板中的 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>;

我还知道我的根页面的 pageconfig 中的以下行禁用了类别字段:
TCEFORM.tx_news_domain_model_news.categories.disabled = 1

所以我知道

TCEFORM.tx_news_domain_model_news.categories

地址正确的字段。

现在我想更改新闻项目的类别字段的渲染模式。默认的 renderMode "tree" 不支持分类排序。

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

我试过了:

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
}

以及其他变化。

有人知道我做错了什么吗?

【问题讨论】:

    标签: typo3 typoscript typo3-6.2.x


    【解决方案1】:

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

    但你可以对它们进行排序。
    刚到您创建类别的页面/文件夹 - 一定要在列表模块中 - 那里有排序按钮。

    列表模块 - 数据存储 - 查看顺序


    类别选择树 - 与上面的顺序比较

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多