Closed (duplicate)
Project:
Nodewords: D6 Meta Tags
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2008 at 13:19 UTC
Updated:
6 Feb 2009 at 13:13 UTC
Auto-keywords vocabularies is working for terms but not for nodes.
In metatags/keywords.inc
taxonomy_node_get_terms($ids[0]) returns an empty string when it should return an array of terms
I guess it's a module conflict (http://drupal.org/node/152205)
Anyone knows ho to fix this please?
Comments
Comment #1
Bilalx commentedI found a fix thanx to http://www.drupal4seo.com/web-site-optimization/nodewords.html#comment-9
In metatags/keywords.inc
Replace
foreach (taxonomy_node_get_terms($ids[0]) as $term) {
By
foreach (taxonomy_node_get_terms(node_load($ids[0])) as $term) {
Comment #2
ghostks commentedIt's not the best way to fix this issue in my opinion - we needn't to load things twice.
I've added variable $node to store node info and pass it to the function taxonomy_node_get_terms(). This is small enhancement, but many small enhancement will grow in big benefit ;)
Comment #3
avpadernoThe fixed status means that the issue has been fixed from the maintainer in Drupal CVS, not that somebody has fixed the issue in his own copy of the project module(s).
Comment #4
Robrecht Jacques commentedDuplicate of http://drupal.org/node/270193 which has a patch which has been comitted.