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).
Issue fork term_reference_tree-2947329
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
Comment #2
tunprogComment #3
tunprogHere is the patch.
Comment #4
tunprogComment #5
alex_optimComment #6
msypes commentedUpdating to current version for new patch and issue fork
Comment #7
msypes commentedI 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.