What's the use of this code on search_bar template?

rdn

Well-known member
Code:
<xen:if is="{$searchBar}">
                    <dl class="ctrlUnit">
                        <dt></dt>
                        <dd><ul>
                                <xen:foreach loop="$searchBar" value="{$constraint}">
                                    <li>{xen:raw $constraint}</li>
                                </xen:foreach>
                        </ul></dd>
                    </dl>
                    </xen:if>
 
You know the two drop down boxes at the bottom of the search bar in the Resource Manager?

That's a search bar constraint.

So it allows developers to customise the search bar in their templates based on the type of content on that page.
 
  • Like
Reactions: rdn
Top Bottom