After trying to grok what you gave me, I came up with this:

Template code:

[% FILTER html_para %] [% reply.blog_text %] [% END %] <small> tags: [% FOREACH tag IN reply.blog_tags.split(',') %] <a href="[% Catalyst.uri_for('/blog/do_search')_'?q='_ tag %]"> +[% tag %]</a> , [% END %] <p><a href="[% Catalyst.uri_for('/blog/reply/')_ reply.blog_id +%]">comment</a></p> </li> [% IF recurse %] <ul> [% FOREACH child_reply IN blog.replies -%] <li> <p>[% child_reply.blog_title %]</p> <p>[% child_reply.blog_text %]</p> </li> [% END %] </ul> [% END %] </ul> </small> </td> </tr> [% END %]

Perl code:

YourSpaceDB::Blog.pm stuff: ## Thanks to YourMother of Perlmonks __PACKAGE__->belongs_to('blog_parent' => __PACKAGE__); __PACKAGE__->has_many('replies' => __PACKAGE__, 'blog_parent', undef, { order_by => 'blog_date' } ); sub parents { my ( $self, @parents ) = @_; my $parent = $self->parent; return @parents unless $parent; push @parents, $parent; die "Endless lineage loop suspected!" if @parents > 100; $parent->parents(@parents); } #### reply page: sub reply : Local { my ($self, $c, $blog_id) = @_; # Set the TT template to use $c->stash->{blog} = $c->model('YourSpaceDB::Blog')->find($b +log_id); $c->stash->{replies} = [ $c->model('YourSpaceDB::Blog')->search( { blog_is_reply => 1, blog_parent => $blog_id, blog_is_draft => 0, } ) ]; $c->stash->{recurse} = 1; $c->stash->{template} = 'blog/reply.tt2'; }

What I'm running into is it will show something that LOOKS like a reply under the first reply, so as to say the reply has a reply, but it'll have the same title/content/etc. The reply shows up when you click on the node that has the reply, but not before that.

It looks something like this:

original node -reply to original node --reply to reply, but with same title as reply to original node

Thoughts?

meh.

In reply to Re^6: message board thread quandary by stonecolddevin
in thread message board thread quandary by stonecolddevin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.