Closed hweckhardt closed 5 years ago
You have to expand the file:
typo3conf/ext/bootstrap_package/Resources/Private/Partials/ContentElements/Media/Type.html
You need a new case for PDF files (Typ 5):
I have the new case for PDF files (Type 5) to the partials file „ContentElements/Media/Type.html“ and it works perfect. Many thanks for your help!
Von: Metin Yilmaz [mailto:notifications@github.com] Gesendet: Dienstag, 19. März 2019 01:22 An: benjaminkott/bootstrap_package Cc: hweckhardt; Author Betreff: Re: [benjaminkott/bootstrap_package] View/download PDF files (#647)
You have to expand the file:
typo3conf/ext/bootstrap_package/Resources/Private/Partials/ContentElements/Media/Type.html
You need a new case for PDF files (Typ 5):
Bug Report
Text & Media Element as PDF file is not shown in Frontend.
Prerequisites
[ ] Can you reproduce the problem on TYPO3 v8.7 LTS
Description
I have added a Content Element as Text & Media with a PDF file as Media. The thumbnail is shown in the backend, however the file (picture) is not shown in the frontend. In backend, under "Image manipulation" a message (field with blue background) is displayed, saying "No image dimensions could be determined.". I am using Typo3 9.5.4 and bootstrap_package 10.0.4. In a Typo3 installation without bootstrap_package this works like expected.
Steps to Reproduce
[First Step] Add a PDF file as Text & Media to a page. The thumbnail of the PDF file is displayed in the backend.
[Second Step] Display the page in frontend.
Expected behavior: [What you expected to happen]
The first page of the PDF file should be displayed, together with navigation symbols in the top-right corner of the screen (download, print). A scroll bar on the right side appears, and it is possible to scroll down the PDF file.
Actual behavior: [What actually happened] Only the header of the Text&Media element is displayed.
Versions
Typo3 9.5.4 bootstrap_package 10.0.4
You can get this information from executing
composer show
at the command line if your TYPO3 installation is composer based, otherwise the version number will be shown in the extension manager.