• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

RoldanLT

Well-known member
#1
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>
 

Chris D

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