Falls Typo3 7.6 mit Fluid Styled Content (fluid_styled_content) verwendet wird und in diesem Fall für Aufzählungen ein weiterer Aufzählungszeichentyp notwendig ist, hilft folgende Anleitung.
- Im Tsconfig das Feld Aufzählungszeichentyp um die neue Auswahlmöglichkeit erweitern:
TCEFORM.tt_content { bullets_type.addItems = 3 bullets_type { addItems { 3 = Neuer Auswahltyp } } }
- Danach im Typoscript Setup die Ausgabe ergänzen:
tt_content{ bullets { dataProcessing { 30 = TYPO3\CMS\Frontend\DataProcessing\SplitProcessor 30 { if { value = 3 equals.field = bullets_type } fieldName = bodytext removeEmptyEntries = 1 as = bullets } } } }
- Und abschließend in der passenden Fluid Template Datei die eigene Auswahlmöglichkeit hinzufügen. In diesem Fall betrifft es die Bullets.html
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> <f:layout name="HeaderContentFooter" /> <f:section name="content"> <f:if condition="{bullets}"> <f:switch expression="{data.bullets_type}"> <f:case value="0"> <ul class="ce-bullets"> <f:for each="{bullets}" as="bullet"> <li>{bullet}</li> </f:for> </ul> </f:case> <f:case value="1"> <ol class="ce-bullets"> <f:for each="{bullets}" as="bullet"> <li>{bullet}</li> </f:for> </ol> </f:case> <f:case value="2"> <dl class="ce-bullets"> <f:for each="{bullets}" as="definitionListItem"> <f:for each="{definitionListItem}" as="termDescription" iteration="termDescriptionIterator"> <f:if condition="{termDescriptionIterator.isFirst}"> <f:then> <dt>{termDescription}</dt> </f:then> <f:else> <dd>{termDescription}</dd> </f:else> </f:if> </f:for> </f:for> </dl> </f:case> <f:case value="3"> <ul class="gt_aboutus_list"> <f:for each="{bullets}" as="bullet"> <li>{bullet}</li> </f:for> </ul> </f:case> </f:switch> </f:if> </f:section> </html>
Hinzugefügt wurde hier alles ab <f:case value=“3″>
Danach sollte die Liste ausgegeben werden.