By: Snjv
Date: 2007-07-29
Time: 19:36
|
Cascading discussions
Hello,
I want to have discussions cascaded. For example, if I have various comments in my database, I would like to display them as:
C.1: Comment 1
......C.1.1: Comment 1.1
.........C.1.1.1: Comment 1.1.1
............C.1.1.1.1: Comment 1.1.1.1
.........C.1.1.2: Comment 1.1.2
......C.1.2: Comment 1.2
......C.1.3: Comment 1.3
.........C.1.3.1: Comment 1.3.1
......C.1.4: Comment 1.4
C.2: Comment 1
......C.2.1: Comment 2.1
.........C.2.1.1: Comment 2.1.1
.........C.2.1.2: Comment 2.1.2
......C.2.2: Comment 2.2
......C.2.3: Comment 2.3
......C.2.4: Comment 2.4
.........C.2.4.1: Comment 2.4.1
............C.2.4.1.1: Comment 2.4.1.1
and so on.
As there could be any number of 'levels' of sub-comments, I don't think I can use the 'Groupings' type of page. Could you please suggest a way by which I can use TBS to display the cascaded comments?
TIA,
-Snjv
|
By: Snjv
Date: 2007-07-30
Time: 21:28
|
Re: Cascading discussions
Hello,
I have tried variously to get the hierarchy of discussions displayed. But so far it I did not succeed. :(
At each of level of hierarchy I would need to post responses as:
--- <code> ---
Name: Someone
From: Some place
Time: 10:23PM (GMT) on 1/1/2006
<table>
Comment: "..."
</table>
Reply
--- </code> ---
So, if one replies, the reply should be posted, with indentation (let's say 40px) below it.
I have been able to verify that I can assign the indentation part through div as:
<div style="margin-left: [blk1.val]px;">
The problem is, as the set of lines is not a single value to be placed in columns, and outside the table the array does not work (or at least it doesn't seem to), I am unable to repeat the set of lines.
Could you please suggest a way out of this?
TIA,
-S
|