Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49199

Sort Taxonomy Terms by Weight AND Depth in a View

$
0
0

I desperately need to sort a view by taxonomy term weight BUT my key vocabulary is 4 levels deep and term weights appear to "reset" at each level. So, for instance, in my vocabulary the terms District, Elementary and Pre-K all have a weight of 0. For example, a portion of the taxonomy for a school site that I'm building looks like this:

Extracurricular / Weight=14
-- Administration / Weight=0
---- Clerical / Weight=0
-- Athletics / Weight=1
---- Baseball / Weight=0
---- Basketball / Weight=1
---- Cheerleading / Weight=2

When I sort by Weight things like Administration, Clerical and Baseball all float to the top (even above their parents) since they all carry a weight of zero.

I guess what I'm looking for (and not finding) is a way to sort my view by Weight times Depth...or more realistically something like...

Sort = Depth(Parent)Weight(Parent)100 + Weight(Term)


Viewing all articles
Browse latest Browse all 49199

Trending Articles