I have a content type that has an entity reference field linking to taxonomy term pages. I use the term_reference_tree view widget to display the field but I want the list to display as plain text, not as links.

I created a patch to remove the <a> tags that are wrapping each item but that's not enough because we need to make it as an option that could be configured from the widget settings (manage display page).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Tunprog created an issue. See original summary.

tunprog’s picture

Issue summary: View changes
tunprog’s picture

Here is the patch.

tunprog’s picture

alex_optim’s picture

Status: Active » Needs review
msypes’s picture

Version: 8.x-1.x-dev » 2.0.x-dev

Updating to current version for new patch and issue fork

msypes’s picture

I cannot figure out how to submit a new branch and merge request to the issue fork I created that has now disappeared from my view, so I'll just submit an old-fashioned patch file.

These changes add settings options to the "Manage Display" form for the Term Reference formatter. The default is the existing format with links to the taxonomy terms. If the "plain text" option is chosen, no links are produced.