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


Well-known member
<xen:if is="{$searchBar}">
                    <dl class="ctrlUnit">
                                <xen:foreach loop="$searchBar" value="{$constraint}">
                                    <li>{xen:raw $constraint}</li>

Chris D

XenForo developer
Staff member
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