Loading...
Skip navigation
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.

Sorting of data fields in list entry

If you like to push the data fields of the list entry that way, that firstly the left column is filled up until three entries are available and further entries are filled in right column, just use the following Fluid-Template

<f:variable name="fieldsetFieldsHtmlLeft" value="" />
<f:variable name="fieldsetFieldsHtmlRight" value="" />
<f:variable name="fieldsetFieldsHtmlLeftCount" value="1" />
<f:for each="{settings.search.fieldsets}" as="fieldset" key="fieldsetKey">
    <f:if condition="{fieldsetKey} == 'general'">
        <f:for each="{fieldset.fields}" as="field" key="fieldKey" iteration="fieldIterator">
            <f:comment><!-- Label translation --></f:comment>
            <f:variable name="tempLanguageKey" value="tx_openimmo_label.immobilie_{fieldKey}" />
            <f:variable name="tempLanguageValue" value="{f:translate(key: tempLanguageKey)}:" />
            <f:comment><!-- Fluid field section --></f:comment>
            <f:variable name="section" value="default" />
            <f:if condition="{field.section}"><f:variable name="section" value="{field.section}" /></f:if>
            <f:comment><!-- Field is filled? --></f:comment>
            <f:variable name="newField"><f:format.raw><f:render partial="Immobilie/{field.partial}" section="{section}" arguments="{immobilie:immobilie, label: tempLanguageValue}" /></f:format.raw></f:variable>
            <f:variable name="newFieldFilled" value="{oi:iterator.explode(content: newField, glue: 'dd')}" />
            <f:variable name="newFieldFilled" value="{f:count(subject: newFieldFilled)}" />
            <f:if condition="{newFieldFilled} > 1">
                <f:if condition="{fieldsetFieldsHtmlLeftCount} <= 3">
                    <f:then>
                        <f:variable name="fieldsetFieldsHtmlLeft"><f:format.raw>{fieldsetFieldsHtmlLeft}{newField}</f:format.raw></f:variable>
                    </f:then>
                    <f:else>
                        <f:variable name="fieldsetFieldsHtmlRight"><f:format.raw>{fieldsetFieldsHtmlRight}{newField}</f:format.raw></f:variable>
                    </f:else>
                </f:if>
                <f:if condition="{fieldsetFieldsHtmlLeftCount} == 6"><f:variable name="fieldsetFieldsHtmlLeftCount" value="7" /></f:if>
                <f:if condition="{fieldsetFieldsHtmlLeftCount} == 5"><f:variable name="fieldsetFieldsHtmlLeftCount" value="6" /></f:if>
                <f:if condition="{fieldsetFieldsHtmlLeftCount} == 4"><f:variable name="fieldsetFieldsHtmlLeftCount" value="5" /></f:if>
                <f:if condition="{fieldsetFieldsHtmlLeftCount} == 3"><f:variable name="fieldsetFieldsHtmlLeftCount" value="4" /></f:if>
                <f:if condition="{fieldsetFieldsHtmlLeftCount} == 2"><f:variable name="fieldsetFieldsHtmlLeftCount" value="3" /></f:if>
                <f:if condition="{fieldsetFieldsHtmlLeftCount} == 1"><f:variable name="fieldsetFieldsHtmlLeftCount" value="2" /></f:if>
            </f:if>
        </f:for>
    </f:if>
</f:for>
<div class="col-xs-12 col-sm-6 col-md-6">
    <dl class="dl-horizontal"><f:format.raw>{fieldsetFieldsHtmlLeft}</f:format.raw></dl>
</div>
<div class="col-xs-12 col-sm-6 col-md-6">
    <dl class="dl-horizontal"><f:format.raw>{fieldsetFieldsHtmlRight}</f:format.raw></dl>
</div>
Last change: 2026-06-15

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
HMB__________U_______
K_7____8____Y5____ZKQ
D_N___U18____I_______
A_Y____E_____W____RG9
K6X_________9S7______