We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38359
    • 93 Posts
    Would something like this work:

    [[!migxLoopCollection?
      &packageName=`myPackage`
      &classname=`myPackage`
      &where=`{"title:LIKE":"%[[+search]]%","OR:description:LIKE":"%[[+search]]%","published":"1"}`
    ]]


      • 4172
      • 5,888 Posts
      yeah, this should work, if you put the search-term into that placeholder.
      You could also use a snippet, like getReqParam or a fastField-tag to get the search-term
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 38359
        • 93 Posts
        Quote from: Bruno17 at Jun 30, 2016, 06:26 AM
        yeah, this should work, if you put the search-term into that placeholder.
        You could also use a snippet, like getReqParam or a fastField-tag to get the search-term

        Thanks Bruno,

        Is there a way to display a messgae if the search returns no results?
          • 4172
          • 5,888 Posts
          there is a &emptyTpl - property

          you could also try a :default=`No results` - output-filter
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 38359
            • 93 Posts
            Quote from: Bruno17 at Jul 05, 2016, 04:34 AM
            there is a &emptyTpl - property

            Fantastic - thanks Bruno