Help get this topic noticed by sharing it on Twitter Twitter, Facebook Facebook, or email.
adrake

Want to create a 3-level nested list from a matrix entry

This is an example of a 3 column matrix entry that I'm trying to output as a 3-level nested list. I've been at this for days and cant figure it out. 2-levels is easy using an if - else statement but i cant get my head around 3 levels. Is there a method i should be using, Is there anything to consider with what the matrix field is outputting?

I'm sorting the list using the sort="item_1|item_2|item_3"

Example:
/apples/black/rotten
/apples/green/cortland
/apples/green/cortland
/apples/red/granny
/apples/red/granny
/bananas/green/bad
/bananas/green/bad
/bananas/yellow/good
/bananas/yellow/good
/oranges/orange/tasty
/oranges/yellow/small
/oranges/yellow/small

Any help is appreciated, even if its just a nudge in the right direction.

-a
1 person has
this question
+1
Reply