We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20508
    • 157 Posts
    Hello,

    I LOVE MODX! I’m using it for a third site, in about as many months, it’s fantastic.

    I have a "How-To" question, which I think should be relatively simple to answer, not sure. I have a blog as part of a MODx site and I need to incorporate a search function that will search the blog pages/content only. It shouldn’t search page content that is not related to the blog.

    Can anyone tell me how to do this, or direct me to a tutorial?

    Thanks!
    msflux.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Somebody on the French forum just posted a modification to the AjaxSearch snippet that allow you to specify specific documents to search as well as parent containers to search within.

      http://modxcms.com/forums/index.php/topic,19755.msg123847.html#msg123847

      (you may have to remove this forum from your "ignore board" function in your profile to be able to access this post or to download the file)
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org