• How can i use the PrependToFTQuery

    By Michael Strong 1 decade ago

    Hello

     

    I have a dump question. I am trying to accomplish the following. Search for a String AND to exclude some forms. It only works one way. I can search for the string ind the search panel OR Exclude the forms in the PrependToFTQuery Property.

     

    So if i put something in the PrependToFTQuery property it does not search for my search string anymore. Is there a way to combine The PrependToFTQuery property width the search string? The PrependToFTQuery Property seems to replace and not to Prepend

     

    Kind regards

     

    Michael Strong

    • prependToFTQuery

      By F. Kranenburg 1 decade ago

      The prependToFTQuery prepends itself to the full ft query string. So I think you should end your prependToFTQuery with ' AND '. The searchvalue is added directly to it, but it need to be a valid searchstring.Take a look in the source code, you'll find this in de custom control:

      var q = compositeData.prependToFTQuery + context.getUrl().getParameter("searchValue");

      Where 'q' is the full query string.

      • Thx so much

        By Michael Strong 1 decade ago

        It worked

         

        Kind regards

         

        Michael