15 May
2012
15 May
'12
8:55 a.m.
What is an appropriate way to structure multidimensional arrays in velocity? Let's say I want to have a main topic with two subtopics with three elements each: 1 maintopic 1.1 subtopic1 1.1.1 one 1.1.2 two 1.1.3 three 1.2 subtopic2 1.2.1 one 1.2.2 two 1.2.3 three My approach would be: {{velocity}} #set( $maintopic = ["subtopic1", "subtopic2"] ) #set( $maintopic.subtopic1 = ["one", "two", "three"] ) #set( $maintopic.subtopic2 = ["one", "two", "three"] ) {{/velocity}} But I cannot access the one-two-threes in each subtopic. What am I doing wrong? Thanks and best regards, Moritz