Help - Search - Members - Calendar
Full Version: Deleting comments
Movable Type Community Forum > Additional Resources > Tips and Tricks
bmk
I like the way you're thinking!  :)

Seems like it would work.  I suppose there's only one way to find out....  :)

When you import back in, the entries will get added *to* the blog.  It won't write over existing entries.  (So there will be two of everything... one set with comments and one without.)So you'll most likely want to import into a blog that has no entries.

But what about the ALLOW COMMENTS part?  You will need to edit that line also.

If you aren't going to use comments at all, you could remove the comment tags from the templates, then they just won't show.  That's cheating a bit though.
flip
I need to delete past comments on my entries and have found that there is no easy way to do this.

Could I export a file (without comments) and then import that file? How does importing work? Are duplicate entries replaced?

I thought of creating a backup index file, with the format of an export, but without the comments. Is this correct? Will it work?

CODE
AUTHOR: <$MTEntryAuthor$>
TITLE: <$MTEntryTitle$>
STATUS: <$MTEntryStatus$>
ALLOW COMMENTS: <$MTEntryFlag flag="allow_comments"$>
CONVERT BREAKS: <$MTEntryFlag flag="convert_breaks"$>
PRIMARY CATEGORY: <$MTEntryCategory$>
<MTEntryCategories>
CATEGORY: <$MTCategoryLabel$>
</MTEntryCategories>
DATE: <$MTEntryDate format="%m/%d/%Y %I:%M:%S %p"$>
-----
BODY:
<$MTEntryBody convert_breaks="0"$>
-----
EXTENDED BODY:
<$MTEntryMore convert_breaks="0"$>
-----
EXCERPT:
<$MTEntryExcerpt no_generate="1" convert_breaks="0"$>
-----

--------
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.