22
« on: February 03, 2016, 11:17:37 pm »
Hi! I've got a package which contains some requirements and I want to display them as a series of tables.
I've created a fragment which has a heading, and then a table in the element> section in the fragment. The fragment filters which requirement types I want, which is working.
The fragment is called by the main template, again in the element> section. I can's seem to call the fragment from any other section.
However, when I run the documentation, I get the whole fragment for each element - it puts the header in each time, and a complete table, rather than just the next row of the table.
When I create a number of fragments, each to show a table, then it becomes clear that each element is being processed by the main template in turn - the filtering in the fragment prevents the fragment occurring for the wrong element types, but what I want is each type to be grouped together under the package.
Any idea what I'm doing wrong? I really don't want to have to do this as a custom query, as the data I want is coming out fine.
Thanks!
Screwtape.