Help - Search - Members - Calendar
Full Version: Editting MTCommentBodyTag?
Movable Type Community Forum > Additional Resources > Tips and Tricks
Diana
Hi, I'm using MT to help in part of my site management and am using the comments function to handle form data.   The tag
CODE
<$MTCommentBody$>
automatically inserts a paragraph break before the comment  is displayed.  Is there anyway to edit the paragraph break out?  I don't have a problem editing MT files if I know where to look.  =)  Thanks!
kadyellebee
You can turn off linebreaks in comments by going into the Blog Config under Preferences and look for "Convert line and paragraph breaks in comments"  Uncheck that box, and it won't put Paragraph tags around the comment.

Hope that helps,
Kristine
almuhajabah
Or, if you only want to remove the line breaks in one place, write the tag as follows:

CODE
<$MTCommentBody convert_breaks="0"$>


This will turn off the conversion of line breaks only in the one place, while leaving it on globally. For instance, I like to have it on in the comment listing template so my visitors don't have to use [p] tags when they write their comments, but in some places that I display the comments I don't want the line breaks, so then I use the "convert_breaks" attribute.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.