1. 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?

Discussion in 'Styling and Customization Questions' started by RoldanLT, May 14, 2013.

  1. RoldanLT

    RoldanLT 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>
    
     
  2. Chris D

    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.
     
    RoldanLT likes this.
  3. RoldanLT

    RoldanLT Well-Known Member

    You mean this ?
     

    Attached Files:

Share This Page