Forsh
Forsh

Reputation: 53

TYPO3 news (tx_news) ordering of records not working

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?

Upvotes: 3

Views: 3245

Answers (2)

Alexander
Alexander

Reputation: 225

I got the same problem: My listview always showed the oldest news on the top. I've been searching for a solution for hours. As i wanted to start to change the extension files manually, I found the "setup.txt" in the configuration folder. From there I copied the following code into my Typoscript. The problem is solved now.

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
      }
    }
  }
}

You can ignore the pagination lines. Important is the orderby stuff.

Typo3 Version: 4.7 (not my fault :D ) News System Version: 2.3

Upvotes: 4

Forsh
Forsh

Reputation: 53

Found the solution to this one - basically I had been loading the TS setup code from an external file, which was overriding the default TS setup from the Typoscript template setup field, or rather, it wasn't. I duplicated the TS code in the Typoscript template and the external file and finally it is being recognised and the fields can be sorted.

Upvotes: 0

Related Questions