[TYPO3-german] Ext:news - PDF (relatedFile) in neuem Fenster öffnen ???

Johannes C. Laxander jc at laxander.com
Wed Feb 3 14:19:15 CET 2016


Hallo Hans,

danke für deine Antwort.

>> <n:format.fileDownload file="{relatedFile.file}" configuration="{settings.relatedFiles.download}" target="_blank">

Ich habe von News die Version 3.2.4 installiert, und da funktioniert das so leider nicht (mehr?) ! :(

In der Doku ist beschrieben, dass "configuration used to render the filelink cObject". Aber egal wie ich es angebe, der Link (ein PDF) wird immer im selben Fenster geöffnet:

<n:format.fileDownload file="{relatedFile.file}" configuration="{settings.relatedFiles.download}, target="_blank"" >
<n:format.fileDownload file="{relatedFile.file}" configuration="{settings.relatedFiles.download}, target='_blank'" >
<n:format.fileDownload file="{relatedFile.file}" configuration="{settings.relatedFiles.download}, target:_blank" >
<n:format.fileDownload file="{relatedFile.file}" configuration="{settings.relatedFiles.download}, target=_blank" >


Johannes.

> -----Ursprüngliche Nachricht-----
> Von: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-
> bounces at lists.typo3.org] Im Auftrag von MB-Süd
> Gesendet: Mittwoch, 3. Februar 2016 12:13
> An: typo3-german at lists.typo3.org
> Betreff: Re: [TYPO3-german] Ext:news - PDF (relatedFile) in neuem Fenster
> ffnen ???
> 
> Hallo Johannes,
> 
> ich habe das im Template so gelöst:
> 
>                 <f:if condition="{newsItem.relatedFiles}">
>                   <!-- Related files -->
>                   <div class="news-related-files">
>                     <ul>
>                       <f:for each="{newsItem.relatedFiles}" as="relatedFile">
>                         <li>
>                           <span class="news-related-files-link">
>                             <n:format.fileDownload file="{relatedFile.file}"
> configuration="{settings.relatedFiles.download}" target="_blank">
>                               <f:if condition="{relatedFile.title}">
>                                 <f:then><f:format.raw>{relatedFile.title}</f:format.raw>
>                                 </f:then>
>                                 <f:else>{relatedFile.file}
>                                 </f:else>
>                               </f:if>
>                             </n:format.fileDownload>
>                           </span>
>                         </li>
>                       </f:for>
>                     </ul>
>                   </div>
>                 </f:if>
> 
> einfach im n:format.filedownload  target="_blank" hinzufügen
> 
> Gruß
> Hans
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list