Categories > TinyButStrong general >

headergrp

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: ant
Date: 2004-01-18
Time: 02:58

headergrp

Hello, Scrol29.
Please, help me with headergrp construction. I have this template:
[blk_categories;block=begin]
<b>[blk_categories.GROUP_TITLE;headergrp=GROUP_TITLE;htmlconv=no]</b><br>
<a href="?page=showcat&id=[blk_categories.ID;headergrp=GROUP_TITLE]">[blk_categories.TITLE;htmlconv=no;headergrp=GROUP_TITLE]</a><br>
[blk_categories;block=end]

result:
group1
item1
group2
item
group2
item1

but i need:
group1
item1
item2
group2
item1

Thank you.
By: Skrol29
Date: 2004-01-18
Time: 03:30

Re: headergrp

Hello Ant,

The parameter  'headergrp' is a block parameter.
So you have to add a new section for you header block.
Example:

[blk_categories;block=begin;headergrp=GROUP_TITLE]
  <b>[blk_categories.GROUP_TITLE;htmlconv=no]</b><br>
[blk_categories;block=end]

[blk_categories;block=begin]
  <a href=\"?page=showcat&id=[blk_categories.ID\">
    [blk_categories.TITLE;htmlconv=no]
  </a><br>
[blk_categories;block=end]

By: ant
Date: 2004-01-18
Time: 11:29

Re: headergrp

Ill trying make like given example. But in result now:

item1 (from group1)
item2 (from group1)
item1 (from group2)

(items show, but doesnt show groups titles)
By: ant
Date: 2004-01-18
Time: 11:30

Re: headergrp

Ill trying = I was try

sorry for my English
By: ant
Date: 2004-01-18
Time: 11:49

Re: headergrp

Now i see, that it show only first GROUP_TITLE, and then all items from group1 and grouup2.