We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35362
    • 1 Posts
    Hello all
    any one can help me to use my own search form this is the code:

    <div id="search" class="grid_5 alpha prefix_11">
    <form method="get" action="">
    <div class="search_box">
    <input type="text" value="Search..." class="inputbox_focus inputbox pngfix search_icon" name="s" id="search_field">
    <input type="submit" class="search-btn pngfix" value="">
    </div>
    </form>
    how can i use this form for simple search
      • 23571
      • 223 Posts
      Not sure if this is what you’re looking for, but hope it helps:
      <div id="search" class="grid_5 alpha prefix_11">
                         <form method="[[+method:default=`get`]]" action="[[~[[+landing:default=`[[*id]]`]]]]">
                              <div class="search_box">
                                 <input type="text" value="Search..." class="inputbox_focus inputbox pngfix search_icon" name="s" id="search_field" >
                                 <input type="submit" class="search-btn pngfix" value="">
      						   <input type="hidden" name="id" value="[[+landing:default=[[*id]]]]" />
                              </div>
                           </form>
      </div>
      

      Following the example here: http://rtfm.modx.com/display/ADDON/SimpleSearch.SimpleSearchForm