Hi guys,

IMHO it's a usability no-no to hide all vocabularies by default, I've also seen some issues on the acquia slate project tracker reporting problems with missing taxonomy terms.

I found a very simple way to turn this around so I thought I'd share :)

In your theme setting file change the title from Display to Hide:

      // Display taxonomy checkboxes
      foreach ($vocabs as $key => $vocab_name) {
        $form['node_options']['display_taxonomy_container']['display_taxonomy'][$type]["taxonomy_vocab_display_{$type}_{$key}"] = array(
          '#type'          => 'checkbox',
          '#title'         => t('Hide vocabulary: '. $vocab_name),
          '#default_value' => $settings["taxonomy_vocab_display_{$type}_{$key}"], 
        );
      }

And then in the template.php taxonomy function simply check for the setting to equal 0 instead of 1:

      foreach ($vocabularies as $vocabulary) {
        if (theme_get_setting('taxonomy_vocab_display_'. $taxonomy_content_type .'_'. $vocabulary->vid) == 0) {

And you're all set!

Regards,
JR

Comments

jwolf’s picture

Status: Active » Fixed

added fix to new release => 6.x-1.7

Thank you!!

Status: Fixed » Closed (fixed)

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