Hi all,
I'm running Drupal 4.6.5.
I'm trying to modify the node display page (http://root.url/node/) and the nodes index page so the terms display (terms that the node belongs to) in the full path format.
For example. I have these terms:
dos
windows
open source
java
|--compiler
|--decompiler
c
|--compiler
|--utilities
If I select the terms "dos", "windows", "open source" and the "compiler" term of "java", they are displayed like this:
dos | compiler | open source | windows
I have either to select also the term "java", or rename the term "compiler" above to "java compiler" to denote that, this node actually belongs to "java compiler", but not "c compiler" for example.
I'm trying to find a way to display the terms of the node to something like this:
dos | java\compiler | open source | windows
without either rename the "compiler" term or including the "java" term, i.e to display the full path to a given term. I was trying to modify the code or looking for an already solution from this forum but without any success.
Thank you in advance.
Comments
Linkage
You might find this helpful.
If I select the terms "dos",
What you are looking for is a way to display the category list with the parent term whenever you tag a post with a child or sub-term. That is interesting. May be you could try posting a request. Give your forum a title like "How to display category list with the parent term of a category".
I think the code could be a bit involved depending on whether you want the immediate parent of a sub-term (child term of a child term) or a child term (child term of a parent term). In your example vocabulary, there is no parent term for the vocab. Java and C are the only terms that have children.
vocab
I did not post the full vocabulary, because it's to long. The full vocabulary can be found here: http://programmerstools.org/sitemap
Oh, plenty of terms that
Oh, plenty of terms that have parents. Any code would have to run through the taxonomy tree and print out the parent term and its child term in the format you mentioned.
Did you use the sitemap module for the, well, sitemap?
yes, I am using the sitemap
yes, I am using the sitemap module ... pretty good one :) but I know that the index page module is also useful for such task