By ioo on
Okay, tring to make something cool happen...
I want to know if there is a way to display the info from one list of taxos vs the other.
[Title]
[Path]
[Topic List One:]
[Topic List Two:]
[Body]
I want to list in the $terms only the ones in list one or list two, but not both. So is there something other than $terms I could be using?
Thanks!
Comments
Do you mean
You want to group the taxonomy links by vocabulary? I'm not sure I understand your goal yet.
- Robert Douglass
-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress
Sorry, I want to list terms in one vocabulary
but not the other...
he doesn't...
Want every taxonomy showing up publicly. One vocab may have terms that are internal for admin only and shouldn't show publicly. The taxonomy access module could help with this if you want to go that route, or I'm sure there is some sort of php if statement that you could use instead of the traditional $terms variable to restrict it. I'm not a php wiz though.
Yah, I want to display it, I just want to use it...
To display an image on the post...
<img="http://www.site.com/<? php $SOMETHING; ?>.gif >Nothing?
Anyone?
Taxonomy module functions
Your best bet is to start becoming familiar with the functions in the taxonomy module. Many of them can be called directly and are helpful for achieving special goals. This one is of particular interest to you:
You give it a node id and a vocabulary id and you get a list of the terms assigned to that node within that vocabulary.
- Robert Douglass
-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress
THANK YOU!
Thank you Robert, I will not go and see if I can distroy the world!
Sweet!
BTW, Just bought your book on B&N.