Need some Drupal help

Discussion in 'Drupal' started by archard, Aug 18, 2007.

  1. #1
    I've posted on the official support forums but this is something that I can't seem to find an answer to anywhere.

    I'm looking to accomplish this either by PHP code for a page, or a View, or even a separate module. Basically what I'd like to do is have a list of nodes that are assigned to a certain term from a certain vocabulary, but have those nodes sorted by other terms they're assigned to from other vocabularies. So say I have a list of nodes assigned to Term 1 from Vocab 1. But lets say some of these nodes are also assigned to Term 2 from Vocab 2, and other ones are also assigned to Term 3 from Vocab 3. I want a list that looks like this:

    Page Title (Term 1 from Vocab 1)

    Term 2 from Vocab 2
    - Node 1
    - Node 2
    - Node 3

    Term 3 from Vocab 3
    - Node 4
    - Node 5
    - Node 6

    I'm not sure if this is totally clear so please ask me to clarify if needed.
     
    archard, Aug 18, 2007 IP
  2. mnymkr

    mnymkr Well-Known Member

    Messages:
    2,328
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    120
    #2
    you should be able to do it with views.

    make a list with all the fields you want and then use the template manager to group them
     
    mnymkr, Aug 18, 2007 IP
  3. daringtakers

    daringtakers Well-Known Member

    Messages:
    808
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Yup checkout views.
     
    daringtakers, Aug 19, 2007 IP
  4. archard

    archard Peon

    Messages:
    221
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The problem with doing this in views is that it will display the term for every node it returns. So instead of doing this:

    Term 1
    - Node 1
    - Node 2

    Term 2
    - Node 3
    - Node 4

    It will do this:

    Term 1
    - Node 1
    Term 1
    - Node 2
    Term 2
    - Node 3
    Term 2
    - Node 4

    I'd like them to be all grouped together, you know?
     
    archard, Aug 20, 2007 IP
  5. mnymkr

    mnymkr Well-Known Member

    Messages:
    2,328
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    120
    #5
    i am pretty sure you can do what he wants with views....but also you can look at taxonomy menu i think
     
    mnymkr, Aug 24, 2007 IP