PDF-Viewer  

    bh_touch
    PDF-Viewer-Element für die Touch-Erweiterung
    HTML-Template: el-pdf-viewer.html
    HTML
    {namespace bh=TYPO3\Bh\ViewHelpers} <bh:tmpl.element object="{cObj}"> <f:if condition="{cObj.allSettings.file}"> <bh:get.file uid="{cObj.allSettings.file}" as="file"> <iframe src="/typo3conf/ext/bh_touch/Resources/Public/Elements/el-pdf-viewer/pdfviewer/?file=/uploads/tx_bh/{file.file}&mod={file.overwritehash}"></iframe> </bh:get.file> </f:if> </bh:tmpl.element>
    Typoscript: el-pdf-viewer.typoscript
    TYPOSCRIPT
    plugin.tx_bh.settings.contentElements.el-pdf-viewer < abstract.bhElement plugin.tx_bh.settings.contentElements.el-pdf-viewer { name = PDF-Viewer description = Ein Element mit super Eigenschaften templateFile = el-pdf-viewer.html templatePath = EXT:bh_touch/Resources/Public/Elements/el-pdf-viewer/ settingsForm = EXT:bh_touch/Resources/Public/Elements/el-pdf-viewer/el-pdf-viewer-settings.html iconFile = typo3conf/ext/bh/Resources/Public/Icons/Elemente/puzzle.svg bheListgroup = 1 options{ translate = 0 edit = 0 } } page.includeCSS.el-pdf-viewer = EXT:bh_touch/Resources/Public/Elements/el-pdf-viewer/el-pdf-viewer.css [bh.isMobile] bhDefaultMobilePage.includeCSS.el-pdf-viewer < page.includeCSS.el-pdf-viewer [global]
    Settings-HTML: el-pdf-viewer-settings.html
    HTML
    {namespace bh=TYPO3\Bh\ViewHelpers} <bh:form.settingsform content="{cObj}"> <div class="bhe-formsettings-option"> <label>PDF</label> <f:if condition="{cObj.allSettings.file}"> <f:then> <bh:get.file uid="{cObj.allSettings.file}" as="file"> <bh:form.mediacake name="file" multiple="false" value="{file}" /> </bh:get.file> </f:then> <f:else> <bh:form.mediacake name="file" value="{file}" /> </f:else> </f:if> </div> <f:form.submit value="Speichern" /> </bh:form.settingsform>