Nodeorder doesn't work with taxonomy title
cerber0s - September 28, 2009 - 18:04
| Project: | nodeorder |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Instead of picking up the taxonomy title entered it displays the term name.

#1
This is a dirty hack, it assumes that all terms have a taxonomy title, if a term doesn't then the title will be blank.
Line 304 of nodeorder.module
$names[] = $term->name;can be changed to
$names[] = _taxonomy_title_get_title($term->tid);When I have more time I'll try to come up with a better solution that checks to see if taxonomy title is installed and a fallback to the term name if a taxonomy title has not been entered for the term.
#2
Interesting. Let's try to come up with a more generic solution so that Nodeorder doesn't ever have to check whether or not the taxonomy title module is enabled. I've never looked at taxonomy title, so I'm not sure what it does. If you would post the contents of
_taxonomy_title_get_title()it might help us determine if there's a more generic solution.Maybe we should introduce a hook that gets called in Nodeorder so that taxonomy title (or some other small contrib module) could modify the term name(s).