I have a requirement where I needed to display certain terms in the same place as tags, but for them to be separate in administration. I also have for, the same content type, terms that are not to be displayed to the end-user and serve other purposes and terms which are to show separately from these grouped terms.

The "Node terms" content plugin allows to either display all terms, or filter by specific vocabulary. Also, the vocabulary is stored as vid, rather than machine_name, which makes it pretty useless for large projects, especially multisite platforms.

Patch pending.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MiroslavBanov’s picture

Status: Active » Needs review
FileSize
3.42 KB

Here is the patch. I have allowed multiple vocabularies and adjusted the content to use machine_name.

Chris Matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 5 year old patch to node_terms.inc does not apply to the latest ctools 7.x-1.x-dev, needs reroll.

Checking patch plugins/content_types/node_context/node_terms.inc...
Hunk #1 succeeded at 14 (offset 2 lines).
error: while searching for:

  $terms = array();

  if (empty($conf['vid'])) {
    // All terms.
    foreach ($term_objects AS $term) {
      $terms['taxonomy_term_' . $term->tid] = array(

error: patch failed: plugins/content_types/node_context/node_terms.inc:47
error: plugins/content_types/node_context/node_terms.inc: patch does not apply
shubham.prakash’s picture

Status: Needs work » Needs review
FileSize
3.42 KB