We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40088
    • 708 Posts
    Thanks donshakespeare and Susan.

    I had a bad tpl call in the search-results.html resource but everything seems to be working now.

    Lastly, as seen in this screenshot https://www.dropbox.com/s/wysfdqkrbrvfj4z/SimpleSearch_001.tiff, I can't find the file where I can edit the code for:

    <label for="search">Search</label>

    and
    <input type="submit" value="Search" />
      Todd
      • 42562
      • 1,145 Posts
      Yea, as stated in the above posts, the [[!SimpleSearchForm? &tpl=`SimpleSearchTpl`]] snippet uses a default tpl called SimpleSearchTpl, look for it in the chunks under SimpleSearch Category. It contains your normal html form with a few things added

      It should look like
      <form id="my_id" action="[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
      //you can place anything you want here like.......
      //<label for="search">Search</label>
      
          <input id="searchField" style="width:110px;" class="my_class" type="text" name="[[+searchIndex]]" value="[[+searchValue:default=`search this site..`]]"  />
      
          <input type="hidden" name="id" value="[[+landing:default=[[*id]]]]" />
      </form>
      //this one relies on the user hitting the enter key, but you can put something like...
      //<input type="submit" value="Search" />
      

      I hope I did not misunderstand your question.
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.