Adding New Fields to Comments in Drupal 7

Drupal 7 has many advantages over Drupal 6. Most of the modules have been ported, customizing comments and user profiles is easier and overall, it just runs faster. One of the main improvements, though, is the ability to add fields to different system areas, including Comments, Taxonomies and the User Profiles.

I recently added custom fields to the comments section of a Drupal website and found that it wasn’t as intuitive as I thought it’d be. It’s an easy thing to do, but the options are a little buried and not where very many people might expect at first glance. Let’s take a look.

To edit or add fields to your Drupal 7 comments, follow these simple steps:

1. Login to your Drupal 7 install and click “Structure” at the top

 

2. Click on “Content Types” – (note: you’d think this would be the last step and this is where they live, but there are a few more steps you need to take)

 

3. Click on “Edit” for the Content Type you’d like to like to change the comments on.

 

4. Click on “Comment Fields” in the top right

 

5. That’s it! The comment fields are SPECIFIC to the CONTENT TYPE you’re on.

Drupal does it this way to give you flexibility on your comments and fields. So, in theory, you can have the fields on your blog comments can be different than the fields on your news comments. This added flexibility also makes it one step harder to find though, so I hoped this helped you save a step and some looking around. Let me know if you have any questions or are unable to find something.

Our Thoughts

The Dreadwake

When you think of World of Warcraft (WoW), you may imagine ransacking dungeons for loot and slaying dragons. At KPS3, we think of those things too, but we also think of how Blizzard Entertainment (aka Blizzard, or affectionately “Blizz”), World of Warcraft’s creators, have maintained a wildly successful subscription-based service for more than 14 years. I am currently subscribed to WoW. I’m not even playing right now, so why, much to my wife’s chagrin, do I still pay that...

Why do we love pets on the internet?

If you’re a chronic internet scroller like me, odds are you see videos or photos of pets each day. Pets are all over the internet, many even have their own social networking accounts and have successfully achieved celebrity status. The internet’s most famous dog, Boo, has met celebs like Seth Rogan and Anderson Cooper and has a whopping 16M likes on Facebook. Grumpy Cat, the internet’s most famous feline, starred in her own movie. In 2017, BarkBox conducted a...

Redesigning the University of Montevallo

For those who seek personalized, hands-on education but crave the excitement of a large university experience — meet Montevallo, where you’ll never get lost in the shuffle. How do you take a public liberal arts college (which is an amazing thing, btw) in the middle of Alabama, and make it stand out? How can you convey that this small, niché school is a great choice for you, even if you don’t fit into the “granola” crowd? That was our...