Ability to hide Teaser for Entity reference

Created on 29 April 2024, 8 months ago

Problem/Motivation

1.Create base field - entity reference to taxonomy
2.Create contents
3.Go to Taxonomy term like /taxonomy/term/1
4.There are by default all content referenced to this taxonomy displayed (teaser) which has performance issues.
-it is not triggered by core, but by this module.

I would like to hide everything and render my own view from views. I already rendered it but still unable to hide the default which comes from this module.

Is it possible to hide it?

Of course I can use css :

.node--view-mode-teaser {
  display:none
}

But I want to stop to render it by default at all - or add ability to select option to display/hide. Because my taxnomy doesn not have any teaser enabled and also content type does not have one. Anything has to force this.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @coaston
  • πŸ‡ΈπŸ‡°Slovakia coaston
  • πŸ‡ΈπŸ‡°Slovakia coaston

    Well,

    If i go to content type and enable Teaser and will remove all fields > Taxonomy will display just Title of content type (unable to hide title). However when I disable teaser on content type and navigate back to taxonomy - i can see rendered all fields taken from content type and unable to do anything with.

    It looks like - it takes teaser and if not enabled it will render everything by default when used field of "Easy Entity Base Field"

    So it is definitely a bug. Once there are 1000 + contents - it will display by default for every taxonomy everything which has performance issues.

Production build 0.71.5 2024