Download & Extend

"Help text" field in vocabulary settings ignored, "Description" used instead.

Project:Taxonomy Super Select (TSS)
Version:5.x-1.5-1
Component:Code
Category:bug report
Priority:normal
Assigned:NancyDru
Status:closed (fixed)

Issue Summary

I've noticed that when I add help text to the vocabulary, and enable taxonomy super select, it doesn't show up at all on the "create new content" page.

I patched the module file so that it adds $vocabulary->help to the output, but now it takes the "description" field instead of the "help text" field from the vocabulary settings.

Help appreciated!

AttachmentSize
helptext_0.patch749 bytes

Comments

#1

Status:needs work» needs review

This might work better for you:

      if ($term->help) {
        $help = '<div class="taxonomy-super-select-help">'. $term->help .'</div>';
      }
      else {
        $help = null;
      }
      $form = array(
        '#type' => 'fieldset',
        '#title' => check_plain($term->name) . $required,
        '#collapsible' => TRUE,
        '#collapsed' => $collapsed,
        '#weight' => ($fieldweight >= 0) ? $fieldweight : $term->weight,
        '#parents' => array('taxonomy', $vid),
        '#description' => $term->description . $help,
        '#prefix' => '<div class="taxonomy-super-select-'. ($term->multiple ? 'checkboxes' : 'radios') .'">',
        '#suffix' => '</div>',
      );

With all the other fixes I have applied, creating a proper patch file is very difficult.

#2

Assigned to:jenlampton» NancyDru
Status:needs review» fixed

This is now in 5.x-1.10.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here