Closed (fixed)
Project:
Nodewords: D6 Meta Tags
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
31 Mar 2007 at 15:14 UTC
Updated:
8 Jun 2007 at 10:20 UTC
I noticed that the image_gallery and the forum did not have meta tags.
It was actually pretty simple adding them.
Please review:
This piece of code has to com in the _nodewords_detect_type_and_ids() function
/* added by ednique :: nodewords for forums */
if (arg(0) == 'forum' && is_numeric(arg(1))) {
return array('type' => 'term', 'ids' => arg(1));
}
if (arg(0) == 'forum' && is_null(arg(1))) {
return array('type' => 'vocabulary', 'ids' => variable_get('forum_nav_vocabulary', 0));
}
/* added by ednique :: nodewords for image_gallery */
if (arg(0) == 'image' && is_null(arg(1))) {
return array('type' => 'vocabulary', 'ids' => variable_get('image_gallery_nav_vocabulary', 0));
}
if (arg(0) == 'image' && is_numeric(arg(2))) {
return array('type' => 'term', 'ids' => arg(2));
}
Comments
Comment #1
Robrecht Jacques commentedFixed in 4.7.x-1.x-dev and 5.x-1.x-dev. The changes will be included in the next releases of meta tags.
Thanks ednique!
Comment #2
(not verified) commented