Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • we were able to use the attachment. The issue we ran into was that it was returning Blog (for example) for every Basic page that met the criteria. As a result we had to override the templates to get it to display just the grouping we need. Commented Aug 13, 2018 at 16:01
  • I woudn't expect any filtering issues here since it's a fairly simple case. Are you sure you have all the settings the same between the page and attachment Displays? Only the Fields that are shown should be different. Filters should be the same. Or maybe you have more than one node of the same term but you want the Attachment to only list it once? Commented Aug 13, 2018 at 16:13
  • I updated the example in the question to better show the results. You are correct in that the attachment view's filter criteria is meant to show multiple nodes of the same term so that we always group by Page Types that are linked to a node. Commented Aug 13, 2018 at 16:23
  • Heh yes, now the problem looks a bit different. You could possibly try Aggregation on the Display that lists only the Taxonomy terms. Or create a new Views block of type Taxonomy term that has the same Filters applied (through Relationships to Content) so you get the accurate term set, maybe even clone the default Taxonomy Views that is of type Content and adjust the filters there to show the terms. Is it important to keep the terms list "linked" to the results, so it only shows the terms that had been used in results? I guess it depends on what you mean by "group by term". Commented Aug 13, 2018 at 16:40
  • 1
    You haven't mentioned if you already have the tabs javascript ready, is the HTML output the only thing you need? Maybe there is a way to solve it without custom code, using only Views and Rewriting output a bit. I recently posted an answer to a similar problem but for D7, with the help of some extra modules but no custom code Filter a view by clicking on a link on another view. Commented Aug 13, 2018 at 19:41