[TYPO3-ttnews] News System - Fluid Template Link Helper

JCL - Johannes C. Laxander jc at laxander.com
Sun Dec 30 20:02:49 CET 2012


Hi,
 
in a new list view I will link the news title with the first url in the related link section, but my code in Partials/List/Item.html doesn't work:
 
<f:if condition="{newsItem.relatedLinks}">
   <f:then>
       <!-- Mit dem ersten Eintrag in 'related Links' verlinken -->
       <f:link.external uri="{newsItem.relatedLinks.0.uri}" target="blank">
           {newsItem.title}
       </f:link.external>
   </f:then>
   <f:else>
       {newsItem.title}
   </f:else>
</f:if>

The generated Link is "http:///". With f:link.page it's the page itself. What's wrong?

Johannes.



More information about the TYPO3-project-tt-news mailing list