When I change the theme taxonomy settings, the terms are not displayed anymore.
I selected every setting, but no taxonomy terms in the node or teaser appear.
I have just installed version 1.7.
I cleared the cache.
I have disabled modules similar by terms and taxonomy menu, but this does not help.
I will restore version 1.6 to check if the problem exists there too.

Comments

tomsm’s picture

I have restored to version 1.6 and the problem has disappeared.

Then I updated to 1.7 again:
I deleted the entire acquia marina folder from sites/all/themes and then copied the new 1.7 version to it:
so without any changes.

The problem still exists. I just saved the configuration without changing anything and the terms are gone.

The taxonomy setting shows "Hide" instead of "Display" vocabulary.
Maybe something goes wrong with this latest change added to 1.7:
http://drupal.org/node/446080

tomsm’s picture

I have verified the fixes in http://drupal.org/node/446080, and they work.
But the code in 1.7 theme-settings does not and in template.php ==1 must by ==0.

summit’s picture

Yes, I changed:

if (theme_get_setting('taxonomy_vocab_display_'. $taxonomy_content_type .'_'. $vocabulary->vid) == 1) {

to:

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

Now it works, thanks for the update, and please commit the change!
Greetings,
Martijn

tomsm’s picture

I have changed == 1 to == 0, but this is not enough.

There is also something wrong in theme-settings.php:

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

has to be:

 // Display taxonomy checkboxes
      foreach ($vocabs as $key => $vocab_name) {
        $form['tnt_container']['node_type_specific']['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}"], 
        );
      }

"hide" has to be replaced with "display" in two places.

jwolf’s picture

Category: support » bug
Status: Active » Fixed

Thanks for catching this!

I committed the fix and will be available in the latest dev-snapshot and new release > 6.x-1.8

jwolf’s picture

The following works:

template.php:

if (theme_get_setting('taxonomy_vocab_hide_'. $taxonomy_content_type .'_'. $vocabulary->vid) != 1) {

and

theme-settings.php:

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

The problem was that I didn't changed _display_ to _hide_ and missed the != 1 in template.php:

if (theme_get_setting('taxonomy_vocab_hide_'. $taxonomy_content_type .'_'. $vocabulary->vid) != 1) {

Fix applied to 6.x-1.9 release of theme.

Please clear cache @ Administer > Performance > "Clear cached data" ( or /admin/settings/performance )

Status: Fixed » Closed (fixed)

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