I can't get the Taxonomy Term to be displayed on a taxonomy's page, and it's missing on the taxonomy vocabulary's Manage Display page too.

- I've created a couple of Taxonomy Vocabularies, created some Taxonomy Terms within them, and assigned a few "Products" (content types) with those Taxonomy Terms.
- On the Manage Fields page for the vocabulary admin/structure/taxonomy/vocabulary-name/fields I can view the fields: Name, Description, and a couple of custom fields I've created.
- On the Manage Display page for the vocabulary admin/structure/taxonomy/vocabulary-name/display, I can only configure/see the Description and my custom fields. The Name field is missing.
- When I view the taxonomy term's page at /vocabulary-name/taxonomy-term-name/, it shows the fields as configured in the Manage Display page.

How can I get the Taxonomy Term name to be displayed on the page? Alternatively, which template could I clone/create in my theme to render the Term name manually?

Comments

ClaudeS-1’s picture

I've found and copied taxonomy-term.tpl.php to my subtheme templates, and changed these lines:

<?php if (!$page): ?>
    <h2><a href="<?php print $term_url; ?>"><?php print $term_name; ?></a></h2>
<?php endif; ?>

to:

    <h2><a href="<?php print $term_url; ?>"><?php print $term_name; ?></a></h2>

This lets me display the taxonomy name on my taxonomy page. Not sure why the test for $page wasn't working, or why the taxonomy name field should be missing from the Manage Display page though...

krlucas’s picture

Assigned: Unassigned » krlucas
krlucas’s picture

Status: Active » Closed (cannot reproduce)

Hi! I tested with D7.8 and the default theme. Created a new Vocab. Added custom fields. Added some terms.

And was able to see the term name on the taxonomy/term/[tid] page.

The Name field shouldn't be displayed on the Manage Fields page because, I believe, it's not a field in the same way.

Does changing your theme to a theme that ships with core fix the problem. That would confirm it's not a problem with core.