Score:0

Hide active term from the term page

ng flag

I have an article content type that has a taxonomy reference field that stores the author name. It can hold multiple authors in case the article is authored by more than one author.

As per the image given below, on the author term view page, I need to show only the co-authors names, hiding the current author. ie, if I take the Author1's page, the authors field should hide the Author1's name from the display and show other authors names only.

enter image description here

Is it possible to achieve this using views?

in flag
How is this "Author1, Author2" portion generated? Is this list an entity reference field being rendered as a field? Or is this an embedded view?
Farhan Erooth avatar
ng flag
@Joseph It's an entity reference field rendered as a field.
Score:1
ng flag

I did this using the views with the help of contextual filters.

  1. Created a view block with taxonomy terms - unformatted list of fields.
  2. Added only Name Field

enter image description here

  1. In contextual filters, selected Term ID and configured the following way:
    a. When the filter value is NOT available - Provide default value: Taxonomy Term ID from URL and select "Load default filter from term page"

enter image description here

b. In the more section, select "Exclude" option. This is the option which does the magic. This will remove the filtered value from the view display

enter image description here

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.