bh_touch
Scrollbox-Element für die Touch-Erweiterung
HTML-Template: el-scrollbox.html
HTML
{namespace bh=TYPO3\Bh\ViewHelpers}
<bh:tmpl.element object="{cObj}">
<div class="el-scrollbox-wrapper">
<div class="el-scrollbox-pane">
<bh:tmpl.content section="scrollboxcontainer" parent="{cObj.uid}" />
</div>
</div>
</bh:tmpl.element>
Typoscript: el-scrollbox.typoscript
TYPOSCRIPT
## el-scrollbox
plugin.tx_bh.settings.contentElements{
el-scrollbox < abstract.bhElement
el-scrollbox {
name = Scrollbox
description = Ein Element mit super Eigenschaften
templateFile = el-scrollbox.html
templatePath = EXT:bh_touch/Resources/Public/Elements/el-scrollbox/
iconFile = typo3conf/ext/bh/Resources/Public/Icons/Elemente/scrollbox.svg
settingsForm = EXT:bh_touch/Resources/Public/Elements/el-scrollbox/el-scrollbox-settings.html
bheListgroup = 90
options{
translate = 0
edit = 0
settings = 0
}
swiper.pagination = 1
}
}
page.includeCSS.el-scrollbox = EXT:bh_touch/Resources/Public/Elements/el-scrollbox/el-scrollbox.css
Settings-HTML: el-scrollbox-settings.html
HTML
{namespace bh=TYPO3\Bh\ViewHelpers}
<bh:form.settingsform content="{cObj}">
<!-- Mini MediaCake -->
<div class="bhe-formsettings-option bhe-form-field-type-mediacake">
<label data-tooltip="Hier werden die Bilder ausgewählt die Gallerie angezeigt werden."
data-tooltip-view="extended">Bild-MediaCake</label>
<f:if condition="{cObj.allSettings.pictures}">
<f:then>
<bh:repository.load repository="TYPO3\Bh\Domain\Repository\FileRepository" method="findByUids"
options="{cObj.allSettings.pictures}" as="pictures">
<bh:form.mediacake name="pictures" value="{pictures}" />
</bh:repository.load>
</f:then>
<f:else>
<bh:form.mediacake name="pictures" value="{pictures}" />
</f:else>
</f:if>
</div>
<f:if condition="{cObj.allSettings.styleOptions.classes}">
<div class="bhe-formsettings-option">
<label>Styles</label>
<f:form.select multiple="true" name="style[options]" value="{cObj.allSettings.style.options}"
options="{cObj.allSettings.styleOptions.classes}" />
</div>
</f:if>
<f:form.submit value="Speichern" />
</bh:form.settingsform>