We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I have a landing page (ie case studies or knowledge base) which will aggregate child resources. On said landing page, user has the a series of checkboxes to choose from for filtering the returned children. Also, the user can sort by: Newest->Oldest or Oldest -> Newest or "Featured"

    What's the optimal way to build this out?

    Summary
    * By default the page displays all children
    * User chooses filters (checkboxes) -> clicks apply filters
    * Page reloads with children tagged with that filter
      Sal Baldovinos
      SEO & DIGITAL MARKETING

      ARIEL DIGITAL | Maximize Your Potential
      www.arieldigitalmarketing.com
    • Alternatively - would something like this be possible using AdvSearch snippet, maybe?
        Sal Baldovinos
        SEO & DIGITAL MARKETING

        ARIEL DIGITAL | Maximize Your Potential
        www.arieldigitalmarketing.com
        • 38290
        • 712 Posts
        Hi Sal,

        It sounds like ultimately the best tool to use to filter your resources will depend on the parameters they are being filtered against. I kind of doubt AdvSearch would be necessary for just child resources because it is more used to search across an entire site.

        I wonder if getResources or a simple Snippet with some xPDO would do the trick.
          jpdevries
          • 44195
          • 293 Posts
          I would go with getResources https://rtfm.modx.com/extras/revo/getresources

          You can filter results with 'tvfilters' and use the 'sortby' parameter for direction of results.
            I'm lead developer at Digital Penguin Creative Studio in Hong Kong. https://www.digitalpenguin.hk
            Check out the MODX tutorial series on my blog at https://www.hkwebdeveloper.com