Sometimes, it is useful to add more fields to taxonomy terms. For example, once I had to add an image field to a vocabulary of locations. This field was used to store symbols of that locations, which were used for signaling. Since locations already have a hierarchical structure, it is much easier to use Taxonomy than creating a module with a custom entity for that.

In this scenario, I had to create several views to show the locations' symbols aside their names, including the whole hierarchy (building, floor, room). Apparently, Views does not provide an out-of-the-box solution for this use case. So I decided to write a patch to allow view modes to be used by Hierarchical Term Formatter.

The idea is to allow the user to select a view mode to render each term in the terms hierarchy.

Comments

dbiscalchin created an issue. See original summary.

dbiscalchin’s picture

Status: Active » Needs review
StatusFileSize
new3.8 KB

This patch implements the aforementioned feature. When using a view mode, the "Link each term" option is ignored (and hidden).

astonvictor’s picture

Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.