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

MB-Süd mbsued.ma4 at augsburg.de
Wed Feb 3 12:13:20 CET 2016


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


More information about the TYPO3-german mailing list