[TYPO3-news] [TYPO3-project-news] sorting of newsItem.categories in version 3.2.6

Muriel le Pair typo3 at strangefruit.nl
Thu Oct 13 15:04:34 CEST 2016


Hi,

I have updated a site to tx_news version 3.2.6, it seems that the way 
categories are sorted when displaying a list of articles have changed 
from previous version.
This used to be determined by sorting column. So if you selected a bunch 
of categories for a news article the first category was set by the 
sorting of the categories in list view.

This has suddenly changed, it looks like the categories are simply piled 
on top of each other. So if you first select a category, safe the 
article, and then add another category. The second category automaticly 
becomes the second category in the list.

Is it possible to somehow change this, so that sorting is used like before?

<!-- show cat image -->
												<f:if condition="{newsItem.categories}">
													<f:then>
														<f:for each="{newsItem.categories}" as="categorie" 
key="number" iteration="itemIteration">
                     										<f:if condition="{itemIteration.isFirst}">
                                 								<f:if 
condition="{categorie.images.0}">
                                 									<n:link newsItem="{newsItem}" 
settings="{settings}">
                                       									<f:image 
src="{categorie.images.0.uid}" treatIdAsReference="1" />
                                										</n:link>
                                     							</f:if>
                                 							</f:if>
														</f:for>
													</f:then>
         										</f:if>

--
kind regards,

Muriel le Pair


More information about the TYPO3-project-news mailing list