I added an image field to a taxonomy.
In the display page configuration of the taxonomy I can choose wether to render image or description, but there is no title field. I just put the image.
When I look at my node (which has reference to the taxonomy) there is the name of the term + the image. (And I'd like to just have the image and no title)

I thought this module would let me configure in this way, but I can't figure out how. Is this the purpose of the module?

Ps.
I'm asking because I read this "Optionally, you may also want to have Entity View Mode so you can create a custom view mode for displaying the taxonomy term with just the image." here http://drupal.org/node/1224916

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

What field type and formatter are you using on the node to store/output the taxonomy term? You need something that will actually 'render' the taxonomy entity, which the core formatters do not do. Are you using an entityreference field like your linked page says to use?

kumkum29’s picture

Issue summary: View changes

Hello Dave Reid,

I have the same problem and I want to create a view mode for a taxonomy term.
I want display the field image of my term.
I have created a new view mode with Entity View Modes, but I do not know how to create a corresponding template.
Which suggestion of template must I to use ?

node--taxonomy_term--myviewmode.tpl.php ?

Thanks for your help.

dave reid’s picture

I believe your template suggestion for taxonomy terms would be taxonomy-term--vocabulary-[machine-name]--[view-mode].tpl.php (just without the brackets).

kumkum29’s picture

Thanks for your reply Dave, but this is not functionnal.

My term is called in a entityreference field, which is included in a field collection.
The field collection is inside in my node form.
....not simple...

is there a solution to make a print_r on the public page (where the term is displayed), and get the bundle and entity type?

Thanks.

kumkum29’s picture

If I test a template name with taxonomy-term--15.tpl.php it's ok my template is taken in account.
(15 is my tid)

kumkum29’s picture

Hello,

I can not find the right template suggestion for my custom view mode.
But I have found a solution with this post: https://www.drupal.org/node/1224916
I have created a condition in the taxonomy-term.tpl.php and it's ok.