Hi Skrol29,
First, for some reason I posted a non working example, I'm poting the really working version now:
<dl>
<dt><strong>Kategori:[pForums.pForumCategory.name;block=dt;headergrp=pForumCategoryId]</strong>:</dt>
<dd>[pForums;block=dd;parentgrp=pForumCategoryId;]
<table border='1'>
<tr>
<td>[pForums.name;block=tr]<br /><span style='font-size:10px'>[pForums.description]</td><td>some other info</td>
</tr>
</table>
</dd>
</dl>
|
Well I couldn't figure how I could make it simpler than that.
What I want to achieve is that a structure where there can be many forum items, each forum belonging to only one category, very similar to phpbb stuff. As you can see from the php code in the openin post, 2 forums are under the same category whose name property is "Programming".
I just want to put the category title in dt, and use dd as the forums container of that category, where each forum's title and some additional info is displayed as rows of a table inside dd. I know I could have achived the same result with different mark up but I just wanted to try to see if I can do the same.
So I want the dt part to appear only when categoryId changes,
I want the dd part to appear only when categoryId changes as well,
I want the tr part to appear everytime the forum changes.
So if there is a way to group dt and dd and repeat them together every time category changes that would just solve it. But there is no container that holds both (other than dl which I don't want to repeat) so I had to write tbs markup for both of them. Any solutions to this?