Community & Support

Adding Pros and Cons fields to Node Comments

Is there a way to add a new field to comments similarly to how we add CCK fields to a content type?

I want to add 2 text fields for users to write 'Pros' and 'Cons' in every comment they submit..

How is the comment form/node edited.. are comments nodes? Can CCK be used in comment nodes?

Thanks!! ;-)

Comments

Of course you can use CCK

Of course you can use CCK for Node comments.
Just create new content type (let's call it "My_comments"), use CCK to add any fields you like. And next in other node type (in edit mode) choose "My_comments" in "Node type for comments" section. That's all.

not there

I am in my node type's edit section and I don't see anything resembling "Node type for comments". I do see "Default comment setting" but I don't see a place to associate the new node type "My_Comments" to another Node type (like Page or Story).

I thought comments in Drupal are not Nodes in themselves.
I'm using the default comment module with Drupal 5.7

Any ideas?

You right, by default

You right, by default Drupal's comments are not nodes. But I thought you used "Node comments" module becouse you wrote Node comments in title of this topic. Nevermind. Try use this module, I thing it's exactly what you need.

will probably consume more resources

Thanks
I have 2 issues:
1. The module page says "This module will probably consume more resources and run slower than the built-in comment module, so don't use it if performance is a concern."
2. I have about 20 comments already entered that will have to be manually ported to the 'node comments' module.

I am more concerned about the 1st issue.

nodecomment not yet available for drupal 6

its a great module, but read through its documentation first. normal integrated comments will need to be disabled, integrated forum will also not work.

Have tested in drupal 5, not much noticably slower. But dont know if it will be slower if there are like 50-60 comments. I tested it with only 5-6 comments.

The greatest bad news.... not for drupal 6 yet !!

suggestion

I think Drupal's default comments should allow adding custom fields.

Agreed -- is this in the

Agreed -- is this in the works for D6 or D7... whichever is coming first?

show the form on node's page?

With this module, how can you show the comment form on the node's page. By default you need to be on node/add/cck_comment/ - i'd like to see the form below my posts, like when you're on a post's permalink.

does anybody know how to

does anybody know how to create a node type where you have 2 seperate comments forms so you can add Pros and Cons comments ??