For me, all referenced fields or all title fields are displayed as links. This fits in the node as well as in views. However, I don't want this at all, but I would like these fields to be displayed exclusively as text fields. How can I prevent this?
-
2You can override the twig template(s) to stop putting out the title as a link, for one. Two in Views if you are outputting fields, you can uncheck the linking options.– KevinCommented Jun 13, 2022 at 19:59
-
1Same goes for rendering ER fields on via the Label formatter - just edit the settings and uncheck the link option.– sonfdCommented Jun 14, 2022 at 19:58
-
Does this answer your question? How do I override the template file of a view so that it no longer displays links in my view, but only the plain text?– mona lisaCommented Apr 2 at 10:29
Add a comment
|
1 Answer
You can override node.html.twig from whatever base theme you are using, and alter it so the title does not display as a link.