Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-03 05:51:56

alexburr
Member
From: Rochester, NY
Registered: 2006-02-20
Posts: 14
Website

Remove DIV tags around comments?

Hi, check out this page: http://www.alexburr.com/blog/article/89/alex-burr-2008

I am trying to present comments as a definition list. My comments_display form has the following:

<txp:if_comments>
  <dl id="comments">
      <txp:comments />
  </dl>
</txp:if_comments>

And my comments form has the following:

<dt>
  Posted by <txp:comment_name /> <txp:comment_time />
</dt>
<dd>
  <txp:message />
</dd>

And yet Textpattern seems to be wrapping my comments in an empty DIV element, which I have not specified anywhere.

Any ideas?

Offline

#2 2008-01-03 06:40:57

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: Remove DIV tags around comments?

alexburr

Try…

<txp:if_comments>
  <dl id="comments">
      <txp:comments break="" /> 
  </dl>
</txp:if_comments>

in comments_display instead.

If you have set comments as a numbered list then Txp defaults the break attribute to li otherwise it defaults to the div you are trying to get rid of. Setting it explicitly should remove your problem.


Steve

Offline

#3 2008-01-03 12:33:53

alexburr
Member
From: Rochester, NY
Registered: 2006-02-20
Posts: 14
Website

Re: Remove DIV tags around comments?

That did it! Thanks so much!

Offline

Board footer

Powered by FluxBB