Categories > TinyButStrong general >

Remove last comma in a block

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Martin
Date: 2007-09-19
Time: 00:41

Remove last comma in a block

Hi ! I have a block like this.
Main Block of Course's
Course Number : [x]
<cite><a href="[var..script_name]?teacher=[blkTeachers.pid;p1=[blkCourse.pid];block=cite]">[blkTeachers.Names]</a>,</cite>
This results something like this
Course Number : 1
   Teacher A, Teacher B, Teacher C,
Cource Number: 2
   Teacher D, Teacher E, Teacher F,

My question is, how can i remove the last comma, i try with
magnet
but i cant, because
,
is not a html tag.

Thanks a lot.
By: Skrol29
Date: 2007-09-19
Time: 13:19

Re: Remove last comma in a block

"splittergrp" is what you need.

It could be (not tested):
<a href="[var..script_name]?teacher=[blkTeachers.pid;p1=[blkCourse.pid];block=a]">
  [blkTeachers.Names]
</a>
[blkTeachers;block=begin;splittergrp=pid],[blkTeachers;block=end]

By: Martin
Date: 2007-09-19
Time: 17:22

Re: Remove last comma in a block

Hi Skrol29 !!! Its amazing TBS. Less is More

Thanks a Lot. Martin.