Indexes by Cabinet
I have documents which can be a member of multiple Cabinets. I'm trying to create Indexes which use the Cabinet structure before doing some smart indexing.
Lets say my Cabinets look like:
1. Root
1. Cabinet1
1. DocumentA
1. DocumentB
1. Cabinet2
1. DocumentC
1. DocumentD
1. Cabinet3
1. DocumentA
1. DocumentB
1. DocumentC
If I run the following index template:
{% for cab in document.cabinets.all %} {{ cab.label }} {% endfor %}
Then I end up with the following Index structure:
1. Root
1. Cabinet1Cabinet3
1. DocumentA
1. DocumentB
1. Cabinet2Cabinet3
1. DocumentC
1. Cabinet2
1. DocumentD
The for loop seems to concatenate the cabinet labels rather then create discrete labels. From the documentation i dont believe this is the expected behavior?