Categories > TinyButStrong general >

Grouping Blocks

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: John-Andrew
Date: 2005-03-01
Time: 20:56

Grouping Blocks

I'm looking to group specific list items using headergrp and footergrp.  The thing is, I am using unordered lists.  Now headergrp/footergrp have to have a block tag to work properly, but it throws off my formating.  Here's an example.

HTML:

<div id="sidebar">
<div id="date">[var..now;frm='dd.mm.yyyy hh:nn']</div>

<comm id="menu_header">[menublk;block=comm;headergrp=group]<ul></comm>
<li class="submenu" style="list-style: disc url([var.CFG.settings.web_dir]/skins/[var.USERDATA.skin]/images/[menublk.image]);"><a href="[menublk.url;magnet=li]">[menublk.link;block=li]</a></li>

<comm id="menu_footer">[menublk;block=comm;footergrp=group]</ul></comm>

</div>


Notice the "comm tag."  I had to make one up that wouldn't be recognized so that it doesn't throw my formating off.

Is there a better way, than making up tags; or have the fake tags stripped?

Hope this makes sense.

John-Andrew
By: Skrol29
Date: 2005-03-03
Time: 11:35

Re: Grouping Blocks

Your template seems correct.
It assumes that your data are ordered, because TBS can't do it for you.

If you don't like using alien tags, you can use the TBS explicit syntax:
[menublk;block=begin;headergrp=group]<ul>[menublk;block=end]