[TYPO3-news] [TYPO3-ttnews] tx_news: output of category image in Templates/Category/List.html

Frans Saris franssaris at gmail.com
Tue Nov 11 19:45:14 CET 2014


Hi Carsten,

Try:
<f:if condition="{child.item.images.0}">
<f:image image="{child.item.images.0}" alt="{child.item.title}" />
</f:if>

Instead of:
<img src="fileadmin/img/{child.item.image}" alt="{child.item.title}" />

Gr. Frans
Op 11 nov. 2014 16:35 schreef "Carsten Franz" <mail at carstenfranz.de>:

> Hi,
>
> while updating Typo3 from 6.1.x to 6.2.x and tx_news from 2.2.x to 3.0.1 I
> stumbled over this problem: Category images are not linked anymore.
> My template looked like:
> <f:section name="categoryTree5">
>         <f:for each="{categories}" as="category">
>                 <f:for each="{category.children}" as="child">
>                         <f:if condition="{child.item.uid} ==
> {overwriteDemand.categories}">
>                                 <f:then>
>                                         <f:link.page
> pageUid="{settings.listPid}" additionalParams="{tx_news_
> pi1:{overwriteDemand:{categories: child.item.uid}}}"><span>{
> child.item.title}</span><div><img src="fileadmin/img/{child.item.image}"
> alt="{child.item.title}" /></div></f:link.page>
>                                 </f:then>
> and so on.
>
> Now, {child.item.image} doesn't create any output anymore. I know,
> categories are sys_categories now and not tx_news categories anymore -- but
> how can get the path to those images into my template?
>
> Does anybody have an idea? I've been googling and searching the news
> manual without success.
>
> Kind regards
>
> Carsten
>
> _______________________________________________
> TYPO3-project-tt-news mailing list
> TYPO3-project-tt-news at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-tt-news
>


More information about the TYPO3-project-news mailing list