By slayerment on
I am having problems figuring out how to do this query.
I have a bunch of cell phones categorized by taxonomy. For instance I have a Category called "SonyEricsson" that lists all the different types of SonyEricsson phones. Each type of phone is a term. For example:
Phone SonyEricsson Game Review edit vocabulary add term preview form
F500i (edit term)
J300i (edit term)
K300i (edit term)
K500i (edit term)
K508i (edit term)
K600i (edit term)
K700 (edit term)
K700i (edit term)
K750i (edit term)
S700i (edit term)
I then have nodes that can belong to any of these terms.
What I am trying to do is display all these terms as an array depending on the nid.
So if I had say node 528 I would want it to then have some type of array returned from the query where I could implode everything like:
print implode(', ', $phone_array);
and it would print something like F500i, J300i, K508i, K700, K700i, etc...
Does anybody have any idea how to achive this?
Thank you!
Comments
Doesn't Drupal do that
Doesn't Drupal do that already? All terms attached to the node are already displayed, if you set up the terms under category
-tidalx
It does, but I don't want
It does, but I don't want all my taxonomy terms listed. Just terms under a certain category.
Because eventually I will want to be like
Nokia: Phone 1, 2, 3, 4, etc
SonyEricsson: Phone 1, 2, 3, 4, ...
Like that
Thanks!
Does anybody know? Thanks :)
Does anybody know?
Thanks :)