We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8416
    • 173 Posts
    Hi,
    I’m using the &hideMenu=`0` with AjaxSearch to search only in document visible from menu. That works fine. However, I’d like as well to include in my search other documents which are not visible in menu and not published. Is there an "easy" way to do this?
    Thank you.
      • 5811
      • 1,717 Posts
      &hideMenu

      Search in hidden documents from menu. (optional)

      * 0 : search only in documents visible from menu
      * 1 : search only in documents hidden from menu
      * 2 : search in hidden or visible documents from menu
      As 2 is the default value, the search occurs in hidden or visible documents.
      To adds a search in unpublished documents change in includes/ajaxSearch.inc.php line 93 (doSearch function):
      $qry_sql .= "sc.published=1 AND sc.searchable=1 AND sc.deleted=0";
      by
      $qry_sql .= "sc.searchable=1 AND sc.deleted=0";
      Keep in mind that the search occurs only in searchable documents (sc.searchable=1)

        • 8416
        • 173 Posts
        Thanks coroico!