Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.
Additional information fields in the Detail View
In order to show additional information in the Detail view, you will need a Fluid Partial and some Typoscript. If, for example, you would like to have a field showing the name the colour of the car first create the Partial:
<f:if condition="{fahrzeug.vehicle.specifics.exteriorColor}">
<f:if condition="{fahrzeug.vehicle.specifics.exteriorColor.manufacturerColorName}">
<dt><f:translate key="tx_fahrzeugsuche_label.color" /></dt>
<dd>
<f:translate key="tx_fahrzeugsuche_label.color_{fahrzeug.vehicle.specifics.exteriorColor.color -> f:format.case(mode: 'lower')}" />
</dd>
</f:if>
</f:if>
Save this Partial as Partials/Fahrzeugsuche/FahrzeugFields/Vehicle/Specifics/ExteriorColorShort.html
.
Next, specify that this partial should be used in Setup TypoScript.
plugin.tx_fahrzeugsuche {
settings {
detail {
displayFieldsets {
specifics {
label = Spezifisches
fields {
10 = Vehicle/Specifics/ExteriorColor
}
}
}
}
}
}