Hi,
I have a content type with 3 taxonomies, and I needed to have a match in all 3 vocabs to set as similar,
so basically, having an option to AND/OR taxonomies seems like a great improvement.

Comments

kristen pol’s picture

Status: Active » Postponed

If someone wants to provide a patch, I'll take a look.

kristen pol’s picture

Might be best to stick with views in this case.

kristen pol’s picture

The logic that would need updating is in featured_content.module:

 216         // Check if there is a term match.
 217         if ($has_setting) {
 218           $has_term = FALSE;
 219           foreach ($vocabularies as $vocabulary) {
 220             $vid = $vocabulary->vid;
 221             if (! empty($featured_content['visibility']['vocab'][$vid]['selected'])) {
 222               $terms = featured_content_taxonomy_node_get_terms($this_node);
 223               $tid_intersect = array_intersect($featured_content['visibility']['vocab'][$vid]['selected'], array_keys($terms));
 224               if (! empty($tid_intersect)) {
 225                 $has_term = TRUE;
 226               }
 227             }
 228             if ($has_term) {
 229               break;
 230             }
 231           }
 232           $show = $has_term; // Must have at least one term.
 233         }
 234       }

kristen pol’s picture

Status: Postponed » Closed (works as designed)
kristen pol’s picture

Issue summary: View changes

Updated issue summary.