Search Sitewide

** This will only work after you create your Site Indexes **. Use this search when you want to allow your visitors to search for content throughout your website. You need to have a page called "Search Results" (friendly url: "search-results") with the search code in order for this to work. The submission form code below can be inside the Search Results page as well as in other pages/layouts.

<!--** This will only work after you create your Site Indexes. ** -->
<!--Use this search when you want to allow your visitors to search for content throughout your website. -->
<!--You need to have a page called "Search Results" (friendly url: "search-results") with the search code in order for this to work. -->
<!--The submission form code below can be inside the Search Results page as well as in other pages/layouts.-->




<!--SITEWIDE SUBMISSION FORM CODE-->
<!--Place this code where you want the search form to appear, this can be in any page or layout-->


<div id="searchdiv"> 
    <form action="/search-results" class="f-form">
        <div class="input-group">
            <input type="text" name="q" class="form-control" id="gsearchbox" placeholder="Search">
            <div class="input-group-prepend">
                <button class="input-group-text" id="gsearchbutton" type="submit"><i class="fas fa-search"></i></button>
            </div>
        </div>
    </form>
</div>  


<!--SEARCH RESULTS PAGE SUBMISSION FORM CODE-->
<!--Place this code in the Search Results page where you want the search form to appear-->


<form>
    <input type="text" name="q" value="@(Request.QueryString["q"])"/>    
    <input type="submit" value="Search"/>
</form>


<!--RESULTS DIV-->
<!--Place this code in the Search Results page where you want the results to appear-->


<div id="results"></div>




<!--SEARCH CODE-->
<!--Make sure this code is at the top of the Search Results page-->


@BRT.SearchResultsScript()