Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-24 18:20:48

From: Leeds, UK
Registered: 2006-01-29
Posts: 10,740
Website GitHub

Comments_preview as a table

Not sure if this is the right place for the question but here goes…

If I specify:

<txp:comments wraptag="table" break="" />

and in form comments:

<tr class="a_comment">
   <td class="comment_data">
      <span class="author"><txp:comment_name /></span>
      <br />
      <span class="date"><txp:comment_time /></span>
   <td class="message"><txp:comment_message /></td>

Everything renders fine: in the output html I get a <table> and all the <tr> and <td> tags.

But if I specify:

<txp:comments_preview wraptag="table" />

which uses the same comments form as above, there is no <table> and — confusingly — no <tr> or <td> tags output when I preview a message. But the rest of the form is output fine.

If I alter one of the class names in the comments form it is dutifully applied to both the comments list and comments preview areas, so it is definitely using the same form, but it is stripping the surrounding table cell tags and ignoring the wraptag in <txp:comment_preview />.

And yes, I know I should be banished to an eternity of listening to Barry Manilow records for even considering using a table…

I’m running 4.0.8 and I must be doing something wrong but I can’t see what it is. Thanks in advance for any help.

Last edited by Bloke (2009-01-24 18:22:49)

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp


Board footer

Powered by FluxBB