Closed (works as designed)
Project:
Vocabulary Index
Version:
5.x-1.0
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2008 at 21:21 UTC
Updated:
24 Jul 2013 at 00:03 UTC
I have my vocab index page showing a threaded list. However, if there is a description for a term, the entire description gets formed into the term link. So instead of having a nice, neat, term-based list, I instead have some list items which include that terms' entire description.
Any help as to how I can not display the descriptions in my list would be appreciated.
I am using Taxonomy Context as well.
Comments
Comment #1
Rob T commentedTo solve this for my particular needs, I commented out the description call in the second-to-last line, line 452.
return '<li class="'.$zebra.($children?' parent':NULL).'"><a href="'.$url.'">'.$name.$description.'</a>'.$children."</li>\n";to
return '<li class="'.$zebra.($children?' parent':NULL).'"><a href="'.$url.'">'.$name/*.$description*/.'</a>'.$children."</li>\n";Are there any unintended issues that I may run into as a result of this modification?
Comment #2
xanoChanging the module's code yourself is not recommended. Using theme override functions is a better solution. Overriding the theme function does not have any effect on how the module works, so removing the description will not cause any problems.
Good luck!
Comment #3
amnion commentedI am new to Drupal, but would also like to have that function. I'm not exactly sure how to go about implementing the change using the theme override functions, because I have limited php knowledge.
Another thing I would like to see with this module is the number of nodes attributed to each item in the list. Other than that, excellent work!
Comment #4
xanoHmm, I could build-in an option to disable term descriptions for the 2.0 version of the module. This version won't be released anytime soon, but you could check the 6.x-2.x-dev version from time to time, although it may contain some bugs (that's why it's a development version).
For understanding the theme override functions, please read the handbook pages about them thoroughly and read some tutorials about basic PHP as well. I think that should do the trick. If you still aren't able to get the overrides working when you've done that, please search the forums for solutions or create a new topic yourself when you cannot find any older topics.
Regarding your node count feature request: feel free to create a new issue about this feature.
Comment #5
xanoI have created an issue regarding the request for node counts.
Comment #6
summit commentedSubscribing, greetings, Martijn
Comment #7
xano