Posted by svenA on February 12, 2016 at 8:54am
I have a Taxonomy Term Page rendered from Views.
I have nodes with two termreference fields linked to the same vocabulary.
The first is for “main category” and the second is for “related categorys”
The results are reported in a table.
When a user clicks on a category, I want that category in the top of “main category” column.
The "active" term should be placed at the top of the table.
Main category | Sub category |
---|---|
BBB | EEE, CCC |
HHH | BBB, CCC |
EEE | CCC, BBB |
CCC | BBB, III |
BBB | JJJ, CCC |
CCC | JJJ, AAA |
BBB | CCC, DDD |
CCC | III, FFF |
III | CCC, BBB |
CCC | FFF, HHH |
But, I want this result.
Main category | Sub category |
---|---|
CCC | BBB, III |
CCC | JJJ, AAA |
CCC | III, FFF |
CCC | FFF, HHH |
BBB | EEE, CCC |
HHH | BBB, CCC |
EEE | CCC, BBB |
BBB | JJJ, CCC |
BBB | CCC, DDD |
III | CCC, BBB |
Please, try this demosite: http://sort.monoclick-dev.se
If you choose a category in ether ”Main” och ”Related” column I want that that active category sort in top of ”main category” column.
Normal sorting in Views gives a alfabetical result.
Anybody have a solution?