Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Graham Carr 277 posts 389 karma points
    Apr 24, 2013 @ 11:55
    Graham Carr
    0

    List all nodes within selected categories under parent category

    I was wondering if there was a way or method available in that package that would allow me to find all nodes that have been assigned to a category which exists under a specific parent category.


    So for example, take the following category tree:

    Parent 1
      - Sub Cat 1
      - Sub Cat 2
      - Sub Cat 3
    Parent 2
      - Sub Cat 1

    I want to find all nodes that have been assigned to any sub-category that exist under Parent 1 or Parent 2

    Any ideas??

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Apr 24, 2013 @ 12:08
    Hendy Racher
    0

    Hi Graham,

    The best solution would be to index with Examine, such that when a node is saved the ids of any selected categories, and potentially their parents too are indexed with the node.

    Alternativily how about using the Picker Relations datatype to automatically wire-up a reverse index - then you can iterate through each of the Parents / Sub Cats gatehering all related nodes.

    HTH,

    Hendy

  • Graham Carr 277 posts 389 karma points
    Apr 24, 2013 @ 12:26
    Graham Carr
    0

    Hi Hendy,

    Thanks for the reply. I don't have much experience with Examine, do you have any resource links for how to use it and set it up?

    Graham

Please Sign in or register to post replies

Write your reply to:

Draft