Forum OpenACS Q&A: Response to Nested multiple tags

Collapse
Posted by Lee Denison on

Thanks for pointing that out. This patch, when applied after the first, fixes the problems with the group tag.

It also allows group tags to be nested in the following ways:

<multiple name="outer">
<group column="field1">
@outer.field1@
</group>
<multiple name="inner">
<group column="field1">
@inner.field1@
</group>
</multiple>
</multiple>

<multiple name="outer">
<group column="field1">
@outer.field1@
<multiple name="inner">
<group column="field1">
@inner.field1@
</group>
</multiple>
</group>
</multiple>

Note the following is valid, however when nesting the same multirow, there is no way to reference the fields from the outer most amultirow from within the nested multiple tags. This limitation is mainly due to the fact that I'm trying to affect the evaluation time of the templates as little as possible.

<multiple name="amultirow">
@amultirow.field1@
<multiple name="amultirow">
@amultirow.field1@
</multiple>
</multiple>

The following is not valid because I don't want to affect the evaluation time of the templates, and because I'm not sure what the semantic meaning of this combination of tags is.

<multiple name="outer">
<group column="field1">
<group column="field2">
@outer.field1@
</group>
</group>
</multiple>