Tag: Drupal 7

Preparation for the Acquia Site Builder certification

        Filed under: Drupal

I’ve been leading Drupal projects for around 7 years, and I’m pretty familiar with all the Drupal features, backend functionality, security and maintenance of Drupal websites, but I had never created a Drupal website on my own. I’ve also been managing websites that use a lot of custom and contrib modules, so it was hard … Continued

Tagged: , ,

Drupal logo on blue background

Keeping configuration settings up to date in Drupal projects

        Filed under: Drupal, How to, Web Development

Managing configuration settings such as user permissions and system variables is very critical in any web application. In Drupal environments we use these two mechanisms to version those settings and replicate changes automatically across different environments: Drupal features Features is a Drupal module that offers the following benefits: Allow saving settings in code and keeping … Continued

Tagged: , , , , ,

How to hide Field Groups in Drupal 7, the right way

How to hide Field Groups in Drupal 7, the right way

        Filed under: Drupal, How to

There are times when you need to manipulate a form via hook_form_alter in Drupal, and you may need to hide/show fields depending on some criteria. You can hide a single field using something like $form[‘field_name’][‘#type’] = ‘hidden’;. But, what if you’re using the ‘field_group’ module and you want to hide a whole group? Well, you … Continued

Tagged: ,

bootstrap columns grid

Creating Bootstrap columns in Drupal panels with mixins

        Filed under: Drupal, Front-End Development, How to

In terms of Front-End Drupal gives you several ways to achieve your goals, you can use Views, Panels, Display Suite, Templates overrides, Custom modules, etc., so sometimes it’s a bit difficult to define the best (or the worst) way to do something. A couple of years ago, we created a theme for a Drupal 7 … Continued

Tagged: , , , ,

How to test email notifications in Drupal projects

        Filed under: Agile development, Drupal, How to

Testing email notifications is often challenging because we don’t want to send out testing emails from development and local environments and confuse users. In addition to that, you may want to test headers, subject, body and the overall formatting applied to the information in the message and ensure that it’s readable. There is an easy … Continued

Tagged: , , ,


Alternative notifications for Entityforms in Drupal 7

        Filed under: Agile development, Drupal, How to

Entityform already offers a way to send notifications: by integrating with Rules module you can configure your notifications for administrators or other recipients, some of those may be inputs in the form itself, so this is perfect for most of cases, ah and if you need to migrate the form from one environment to another … Continued

Tagged: , ,

drupal 7 logo

How to Get URL Parameters in Drupal 7

        Filed under: Agile development, Drupal, How to

I’ve seen the horror! (allow me some drama here) I’ve seen code in Drupal projects, trying to get parameters from URLs in this way: $params = $_GET; or $some_var = $_GET[‘some_var’] Drupal has some functions to deal with parameters coming from a URL. Now, let me be honest, it’s not more secure if you use … Continued

Tagged: , ,

drupal logo

How to switch Drupal distributions in an existing website

        Filed under: Agile development, Government websites, How to

Drupal distributions provide site features and functions for a specific type of site as a single download containing Drupal core, modules, themes, and pre-defined configuration. They make it possible to quickly set up a complex, use-specific site in fewer steps than if installing and configuring all those elements individually. Switching Drupal profiles in an existing … Continued

Tagged: ,

bad news for drupal 6

Bad news for Drupal 6 users: PHP unsupports the 5.4 branch

        Filed under: Government websites

PHP announced last year that the version 5.4 is going to be unsupported. That represents a problem for Drupal 6 users, because Drupal 6 may produce errors or unexpected behavior with a PHP version higher than 5.4. Given that announcement, it’s expected that soon, hosting companies will discontinue support of PHP 5.4, which means that Drupal 6 users will need to … Continued

Tagged: , , , , ,

Context module as an alternative to manage widgets and secondary content in Drupal

        Filed under: How to

In Drupal, the most popular way to manage widgets, menus and other pieces of information that are placed in the website’s template regions is through Drupal blocks, which comes with the Drupal core. In small projects, the blocks module ist an efficient way to have these elements placed.  However, when a website becomes more complex and bigger, this module … Continued

Tagged: , , , ,