3

I'm running TYPO3 V6 and the latest version of tx_news (not tt_news) and when I attempt to change the order of sorting for the LIST display, the settings in the plugin are not overriding the Typoscript settings. There doesn't seem to be a way to change to sort order of articles in the list view. I am aware that flagging a news record as "top news" will float it to the top of the list, but none of my records have that flag set.

Has anyone else had this problem?

4

2 回答 2

3

我遇到了同样的问题:我的列表视图总是在顶部显示最旧的新闻。几个小时以来,我一直在寻找解决方案。当我想开始手动更改扩展文件时,我在配置文件夹中找到了“setup.txt”。从那里我将以下代码复制到我的 Typoscript 中。现在问题已经解决了。

plugin.tx_news{
  settings{

    overrideFlexformSettingsIfEmpty = cropMaxCharacters,dateField,timeRestriction,orderBy,orderDirection,backPid,listPid,startingpoint,recursive    
    orderBy = datetime
    orderDirection = desc
    orderByRespectTopNews = 0
    orderByAllowed = sorting,author,uid,title,teaser,author,tstamp,crdate,datetime,categories.title  

    list{  
      paginate {
        itemsPerPage=4
        insertBelow=TRUE
        lessPages=TRUE
        #forcedNumberOfLinks=3
        pagesBefore=1
        pagesAfter=1
      }
    }
  }
}

您可以忽略分页线。重要的是 orderby 的东西。

Typo3 版本:4.7(不是我的错:D)新闻系统版本:2.3

于 2016-09-13T11:19:21.373 回答
0

找到了解决方案 - 基本上我一直在从外部文件加载 TS 设置代码,该文件覆盖了 Typoscript 模板设置字段中的默认 TS 设置,或者更确切地说,它不是。我在 Typoscript 模板和外部文件中复制了 TS 代码,最后它被识别并且可以对字段进行排序。

于 2013-12-04T11:52:13.030 回答