Categories > TinyButStrong general >

'headergrp' parameter problem

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Al
Date: 2003-07-16
Time: 17:01

'headergrp' parameter problem

Hello,

I've experienced some problem with the 'headergrp' parameter
here is my code :
       
<table>
   <tr>
     <td>&nbsp;</td>
     <td colspan="4">[liens.Categorie;block=row;headergrp=Categorie]</td>
   </tr>
   <tr>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td><a href="[liens.Url;block=row]"><img src="flag_[liens.Langue;block=row].gif"></a></td>
     <td ><a href="[liens.Url;block=row]">&nbsp;[liens.Nom;block=row]</a></td>
     <td>[liens.Commentaire;block=row]</td>
    </tr>
</table>

The value of 'Categorie' changes several times but is only displayed
at the beginning.

What is wrong in my code ?
Is there something i'm missing ?

The documentation of TBS is very light on that subject.

Thanks for your help.

Al
By: Skrol29
Date: 2003-07-16
Time: 19:28

Re: 'headergrp' parameter problem

Hi Al,

You've mentioned block-row too many times.
And it is possible that the name of the column on which you make the headergrp is case sensitive.
Try this code :
<table>
   <tr>
     <td>&nbsp;</td>
     <td colspan="4">[liens.Categorie;block=row;headergrp=Categorie]</td>
   </tr>
   <tr>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td><a href="[liens.Url;block=row]"><img src="flag_[liens.Langue].gif"></a></td>
     <td ><a href="[liens.Url]">&nbsp;[liens.Nom]</a></td>
     <td>[liens.Commentaire]</td>
    </tr>
</table>
By: Al
Date: 2003-07-16
Time: 21:51

Re: 'headergrp' parameter problem

I don't understand why there is a inconvenient for fields name to be
case sensitive ?

I tried your solution but still no result, I'm tring to change change all fields names to lowercase in the table. I'll let you know ...

Keep on doing the good job...
By: Al
Date: 2003-07-16
Time: 21:59

Re: 'headergrp' parameter problem

You were right !!!
With all fields name to lowercase (and 'block=row' removed as suggested) everything works fine.

Thanks a lot