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 2010s: The decade of social media

Reflecting on 10 years of social media. In 2010, Tik Tok by Ke$ha spent nine weeks at the top of the Billboard Hot 100. Angry Birds was among the most downloaded apps of the year, and “double rainbow” took the internet by storm. Apple released the iPhone 4, but Siri had not yet been created. Nearly a decade later, Old Town Road by Lil Nas X and Billy Ray Cyrus dominated the Billboard chart for 19 weeks, breaking records....

Dispelling Udder Nonsense with the Nevada Dairymen

In October, the Public Relations Society of America (PRSA) Sierra Nevada Chapter honored us at the annual 2019 Silver Spikes award ceremony for our work with various clients. You can read more about our Silver Spikes haul here, but today we’re mooooving other awards off the shelf to talk about one client in particular: The Nevada Dairymen. Our “Udder Nonsense” campaign, which ran throughout June in honor of National Dairy Month, took home a Silver Spike in the category...

How to take advantage of Google Ad Grants as a small nonprofit

Let’s talk about something nonprofits know very well: Grants! More specifically, let’s talk about something a lot of nonprofits don’t know about, or maybe don’t know how to manage: Google Ad Grants.  Google Ad Grants are a grant offered by Google through their Google for Nonprofits program (If you’re not already familiar, get familiar here) which gives $10,000 real, actual dollars to nonprofits in Google Ads spend. It may sound too good to be true but I assure you,...