Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results for taxonomy term node count with depth
Search options not deleted
1 vote
2 answers
2k views

Taxonomy term node count with depth

I want to achieve the following term listing: clothing (17) dresses (2) skirts (3) tops (12) accessories (5) bags (1) jewelery (4) necklaces (2) rings (2) Is this possible with views? … I know you can use the "Taxonomy Term: Content with term" relationship, but this only counts the nodes attached to the parent terms and not those attached to the child terms... …
sandra_vdv's user avatar
0 votes
2 answers
898 views

Count of nodes filter in views for a taxonomy with depth

In views, Drupal 8/9, is it possible to have the count of nodes for a taxonomy-term with depth? I would like to have it for the filters in views. I can't find any modules to get this information. …
tronic's user avatar
  • 51
2 votes
1 answer
76 views

Would be creating menus totally in views reasonable?

Above question is about two situations: Standard, simple menu with 1-2 levels of depth, Catalog on commerce site, with number of products, next to every item (taxonomy term) of menu. … I can imagine, that counting all nodes related to every taxonomy term every time when site is accessed would kill the server (if there is like hundreds of products), but views have some cache option, don't …
Łukasz Zaroda's user avatar
1 vote
Accepted

Views selective filters show terms hierarchy

$trm->name); $options[] = $choice3; $flagged[] = $trm->tid; } } } $oids = $options; /* * Returns a term depth (https://www.drupal.org/node/886526#comment-7708315) */ … depth ++; $tid = $parent['parent']; if ($depth > $limit) { break; } } return $depth; } Both are necessary, usual nested checkboxes from BEF do not work as is. …
Kojo's user avatar
  • 3,513