Community & Support

How to disable "comment post" for content type?

I've created a content type "article" wherein I've enabled "Default comment setting: Read/Write". After this, I've posted around 200 articles. Now when I change content type article's "Default comment setting to Disabled", it does not disable comment posting for any of the already posted article.

To disable the comment posting I've to edit each content post and then disable it manually. Is there a way I can disable comment posting for content type "article" all at once?

Comments

Last resort.

I do not think there is a solution from UI for this.

With SQL you can do an update straight to your database. Look in node table for a field comment and update it to 2.
Use UPDATE command in SQL

Remember to do a backup first.

Harjoituspäiväkirja - www.lenkkivihko.fi

Harjoituspäiväkirja - www.lenkkivihko.fi

Actually 2 is the read/write

Actually 2 is the read/write value. If you want to disable comments on existing posts you should set it to 0.

Note that this will make existing comments disappear (tho not from the database). If you want them to stay but simply prevent more from being added, set it to 1.

Chris

Mass Change module

I haven't tried it, but this looks like what you could use: http://drupal.org/project/mass_change
This might work as well: http://drupal.org/project/views_bulk_operations

If not, then the above suggestion should work too. I'm not sure off hand the SQL query you'd need but I'm sure someone on the forum or in IRC can help write up the query (would be pretty simple).

-- David
davidnewkerk.com | absolutecross.com
View my Drupal lessons & guides

http://drupal.org/project/mas

http://drupal.org/project/mass_change worked like a charm!

Thank you so much Keyz

Loves!

SQL snippit works for me