Categories > TinyButStrong general >

Merge a block several times

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: François
Date: 2005-08-18
Time: 12:35

Merge a block several times

I have a problem I can't solve. It's typically a sub-block problem, but I can't use the %p1% system in the sub query, as the tables used in the subquery are dynamically chosen from the first one.

I want to parse something like that:

<ul>[block.title;block=ul]
       <li>[subblock.title;block=li]</li>
</ul>

A first requests brings me the number of list, and with the second one I can for each list extract the elements of the list.

However, as I can't use the %p1% system, I just merge the first list, the other ones are not displayed.

Has anybody a solution? Thanks in advanec!
By: Skrol29
Date: 2005-08-18
Time: 14:40

Re: Merge a block several times

It should be like:
<ul>[block.title;block=ul]
  <li>[subblock.title;block=li;p1=[block.id]]</li>
</ul>

It needs the p1 parameter to activate the dynamic query mode.