Somewhat like the option about term path for views, it'd be nice if NAT had an option to use hook_term
_path so taxonomy_term_path returns the node url when desired.
If a module other than taxonomy is set for a vocabulary, taxonomy_term_path calls _term_path and uses that url instead of the regularly one for the term path. Ie, if NAT was set as the module for vocabularies associated with a content type and had a hook_term_path implementation to link to the node corresponding to that term, anytime taxonomy_term_path is called the node url could be returned when avaliable. (if nothing returned, default term path is used).
Steps to implement:
Add option, set option
Set effected vocabulary's module to NAT
nat_term_path
Core modules and various other modules call taxonomy_term_path to get the term path, so it'd be quite a useful feature
Comments
Comment #1
anantagati commentedGood idea.
Comment #2
anantagati commentedComment #3
anantagati commentedComment #4
anantagati commentedIf I am correct there is option to change path to NAT node. So urls to terms can be rewritten to NAT node.
Comment #6
ipwa commentedCan this be implemented please for Drupal 7, I don't see the option there.
Comment #7
ipwa commented