Forum OpenACS Q&A: Re: break out of a multiple tag?

Collapse
Posted by Tom Jackson on

Of course if you have two templates for one multirow datasource, the condition to 'break' or 'continue' could be different. It should be possible for the designer to decide what rows, or what part of a multiple tag gets processed. I don't think this is currently possible. It sure would be nice.

Collapse
Posted by Tilmann Singer on
Well you could if you really need it make the unwanted elements invisble like this:

<multirow>
<if not @multirow.some_value@ gt @my_limit@>
...
</if>
</multirow>

Would result in a few unnecessary loop runs, but it is available right now.

Simplicity is a great feature of the templating language - it's designed to be easy to explain to non-programming graphic designers. I am not sure if I want to explain the concept of break and continue to them, but then if it's clearly marked as advanced feature in the documentation, why not.