Adding Comment support for an Entity in Drupal 7

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
michaelsilverman's picture

Not sure if this is the correct place for this post so if not let me know.

I have started working with D7 and have the need to create a new Entity and a number of sub-types. I want to allow users to post Comments to this Entity but cannot figure out how this can be accomplished. Any help would be welcome.

Comments

By Entity, do you mean content type?

BastouBach's picture

If so, you go to
Home » Administration » Structure » Content types select your "entity" and under comment settings you choose "open", which is actually a default in D7.
You also need to give permission to your users to post comments.

An Entity is not the same as a Content Type

michaelsilverman's picture

No, as I understand in D7 an Entity is the parent of a node and is not seen as a Content Type and therefore not managed from within Drupal core. I know that I can create an Entity type from a module and then create sub-types and add Fields. What I cannot figure out is if and how I can associate Comments to the Entity Type that I created?

A couple of related

Scott Jackson
Wollongong Australia

Reply

rogical's picture

Reply http://drupal.org/project/reply a D7 answer to entity comments.

Great!

scaballeronavia's picture

Very Good, Thank U rogical