myshop-repeat:search-fields

Entity Value
Attribute(s) style
Type repeat loop
Relation myshop-search-field:label, myshop-search-field:control, myshop-search-field:control-max, myshop-not-has:search-field-max, myshop- has:search-field-max, myshop-search-field:control-global, myshop-action:search

The myshop-repeat:search-fields allows changing the layout and the arrangement of the search block. The default search block displays the fields according to a fixed pattern. The layout cannot be changed. The addition myshop-repeat:search-fields however, does enable this. Themyshop-repeat:search-fields is a repeat loop within which the search fields of a search block are dealt with one by one. The example below illustrates this. In line 2 of the example the search block starts. The entire contents of <tr> element –including the <tr> element – is repeated until all search fields have been included. Each search field can display the field’s label with myshop-search-field:label and the search field with myshop-search-field:control or myshop-search-field:control-max – when using min/max fields -. The sequence of the fields is identical to that of a default search block.

<table style="myshop-has:searchblock">
        <tr style="myshop-repeat:search-fields">
                <td>
                        <span style="myshop-search-field:label"/>:
                </td>
                <td style="myshop-not-has:search-field-max">
                        <span style="myshop-search-field:control"/>
                </td>
                <td style="myshop-has:search-field-max">
                        van&#160;<span size="6" style="myshop-search-field:control"/>
                        &#160;t/m<span size="6" style="myshop-search-field:control-max"/>
                </td>
        </tr>
        <tr>
                <td colspan="2" align="rights">
                        Alle producten:<span style="myshop-search-field:control-global"/>
                        &#160;<input type="button" style="myshop-action:search" value="zoeken"/>
                </td>
        </tr>
</table>

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment