We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45069
    • 22 Posts
    I have a blog done based on the article package in modx revo.
    I would like that when search in blog I only get blog documents in my result.

    I use for the site the SimpleSearch but that shows all found documents not just blog ones.
      • 27106
      • 147 Posts
      You can specify a comma-separated list of parent IDs to restrict the search to, using the ids parameter. To ensure that children of the parents are searched, set the idType parameter to "parents". This will add all the children of the IDs in the ids parameter to the search. See http://rtfm.modx.com/extras/revo/simplesearch/simplesearch.simplesearch.

      I'll try to find time to set out the exact code in the next day or two. If you try beforehand, let us know how it works.
        David Walker
        Principal, Shorewalker DMS
        Phone: 03 8899 7790
        Mobile: 0407 133 020
        • 45069
        • 22 Posts
        Hi David,

        thank you very much.

        I'll try again as I did not added the idType before.
        I'll let you know if it works smiley

        Regards,
        kubraniec
          • 45069
          • 22 Posts
          Hi David,

          Juhuuu it works! I was so close but still so far :-D

          Thanks,
          kubraniec
            • 27106
            • 147 Posts
            I love happy endings.
              David Walker
              Principal, Shorewalker DMS
              Phone: 03 8899 7790
              Mobile: 0407 133 020