Anyone who knows Drupal...

  • Started
  • Last post
  • 3 Responses
  • ismith

    Please, for the love of god show me a way to list the taxonomy terms AND the nodes they contain in a MENU, not on a page like /taxonomy/term/#.

    I have three 'terms' in a 'vocabulary', and they are school, work, and art. Say I have five nodes each filed under one of these. I want my left nav to look something like this:

    Home
    Contact
    ...etc
    School
    --Node
    --Node
    --Node
    --Node
    --Node
    Work
    --Node
    --Node
    --Node
    --Node
    --Node
    Art
    --Node
    --Node
    --Node
    --Node
    --Node

  • ismith0

    Just as I posted this I wished I hadn't, should've just registered at some drupal forum... ah fuck, I'll let this sit here for a bit and then take it there if nobody can help but I would REALLY appreciate it, since I've come SO close to getting it but every time something fails that just fucks it all up.

  • acescence0
    • maybe?acescence
    • Have you used it before? I could not get it to list the nodes in a menu.ismith
    • It's the right idea, but almost all of these things are about making the menu smaller where I want mine bigger.ismith
    • i haven't used it, sorry. only used drupal once a loong time agoacescence
    • thanks anyway, I'm just getting back into drupal mysel just this has pissed me off so bad todayismith
  • welded0

    Just guessing, but you might be able to use the Views module to get the data you need. It's extremely useful anyway, so if you're messing about with Drupal you really should take a look anyway.

    So your view type would be 'block' so you can place it where you need in the block admin, the fields would be node name + link to node and taxonomy term + group by field, order by taxonomy weight (or whatever else you want), filter by vocabulary and published, set limit to 0, set formatting to unordered list, or something (you may need to fiddle with this since I can't remember it's names and values). In my head, you'll end up with an unordered list one or more levels deep that you can then pretty up with JS/CSS.

    My guess is that this would work; it's what I'd try, anyway. :/