In Drupal 8 or above managing configuration in code is not a challenge, but in the case of Drupal 7, it is still a big issue. Developers often create a module for this and use hook_update to maintain configuration in code. Here we are trying to list 10 common use cases for the making configuration changes using hook_update in Drupal 71 .
Are you planning to upgrade your Drupal 8 site to Drupal 9? Here are the top reasons why you should upgrade your Drupal 8 site to Drupal 9.
Discover how the time and cost of Drupal 7 to 9 upgrade can be estimated based on the complexity of the website.
It is extremely important to assess the complexity of your Drupal 7 website before you plan to upgrade/migrate it to Drupal 9. We have created a tool that helps you in this process. Drupal 7 Audit The Drupal 7 audit is a Drush command which can do a full site audit to capture the essential elements required for assessing the complexity of your Drupal 7 site.
A few factors will determine how difficult the Drupal 7 to Drupal 9 migration is for your site. Learn about them here.
Drupal 7 End of Life Migration Guide: Smoothly transition and upgrade with essential insights for site owners. Learn more now!
Congratulations on your decision to migrate to Drupal 9. This is going to be one of the best decisions you’ve made as a technology leader. As you’d be aware, since the release of Drupal 8 in 2015, Drupal has been considered a leader in the object-oriented, enterprise-class, modern web content management framework. Now that Drupal 9 is also released in June 2020, the Drupal community has kept its word and has proven that the version upgrade to the new version is a walk in the park.
What are Pseudo-Fields? Pseudo field is a field that you can add to any content entity type. For example, you can add a pseudo-field to nodes, taxonomy terms, users, paragraphs, etc. You can hide this field in the UI, but you cannot change it's value, because the content of this field is generated via the code.
I had a requirement to add a multi-level responsive drop down menu in a Zyxware theme. Please do refer the below reference links to know more about responsive themes and free Drupal themes. So for that I had to edit page.tpl.php, page--front.tpl.php, style.css, template.php etc. First I added the following code to template.php of my theme. The steps that I followed here are,
For upgrading any of your contributed Drupal 7 modules, you just need to follow the few steps shown below. First of all you have to make sure that Drush is installed. If not installed, follow the steps from here.
As part of a project requirement, we needed to notify users whenever an entity got created, updated, rated, or reviewed. Drupal's 'message' module fulfills this requirement. We can log and display messages and can even customize the notifier plugins. For creating a notification, we need to install the following modules: message message_notify message_subscribe The dependent modules are:
Kraftwagen is an Open Source deployment tool that is built entirely on top of Drush. Kraftwagen makes Drupal “easy to use” for developers, who customize Drupal extensively, need staged deployments, and use version control systems to collaborate. It provides a set of commands for 'drush make' based Drupal development workflow.Benefits of using Kraftwagen for security updates By using Kraftwagen to deploy security updates, the benefits are multifold, which include
[SOLVED] How to Uncheck 'Generate Automatic URL Alias' Option for All Node Editing Form by Configuration in Drupal 7?
In one of my work, there was a requirement to uncheck the option for 'Generate automatic url alias' checkbox for all nodes. I used the Pathauto module with version 7.x-1.2 for handling standard urls in the site. When changing a node title, its URL automatically changes. In case one forgets to uncheck the option 'Generate automatic url alias' in the node editing form, you can uncheck the option with the following steps:
HubSpot CRM manage sales processes of organizations. We can create contacts, company, leads, tasks using direct HubSpot CRM UI or using APIs provided by HubSpot. Here we are going to look at the APIs to create, update and delete companies. Create a Company This API is useful when we are integrating HubSpot with other site. https://api.hubapi.com/companies/v2/companies?hapikey=demo&portalId=62515 Required Parameters to send Request
For a recent project, I had a requirement to implement menu tabs in Drupal 7. Let see what are the necessary code for the same. First I created menu tabs in .module file using hook_menu() with the following codes.
A patch is a small file which shows what was changed in a repository. It shows the new changes in an existing file, details of the new files in the current directory, file deletion details etc. A patch file can be pushed to the git repository so that it is useful in the future for updating the changes in the corresponding file. For creating a patch file in your current git repository, make changes in your files. Now open the terminal. For unstaged changes, type the following command,
To render a Drupal form to a node, drupal_build_form function is used. This function allows us to render all forms except the admin forms. Note that, admin forms didn't find success while rendering the same. In-order to render a form the following syntax is used,
In this article I will be explaining how to create a custom media gallery functionality using the library Fancybox. First step is to create the content type 'Media Gallery(media_gallery)' and add the following fields in page 'admin/structure/types/manage/media_gallery/fields'
For a recent Drupal project there was a requirement to find the pages that a user visits on the site and send that to Google Analytics. Here, first we should save the page links that the user visits. But for this we need,
I came across a situation in my recent project, where user roles other than admin have to access the admin pages. The default admin theme was not provided for the admin pages in which the user role is not admin. Drupal has a module which allows us to add the admin theme to specific pages irrespective of the user role. Below are the steps which I followed to achieve this.