Drupal Developers

Zyxware default image1
| 1 min read
While setting up local environments for Drupal 8, everyone may find difficulty in login to the site, if the password is unknown In Drupal core there is a script file that return the hashed password, which is core/scripts/password-hash.sh. Run the following command to get the hashed string for '123' in the terminal. ./core/scripts/password-hash.sh 123 Update the returned string in the password field in the user's table for required users via command line or any MySQL (or any database systems like PostgreSQL, MariaDB, MongoDB) GUI tools.
Zyxware default image3
| 2 min read
While working on a Drupal 8 project we suddenly encountered this error after pushing the site to the development server. This had not occurred in our local machines which caught us off guard. A little debugging on the error log revealed the cause of this Drupal message. If you encounter this error unexpectedly, the first thing you should do is to check the error log of the server which is what we did. However, if you do not have access to the error log it and if the issue is only occurring in a particular server after deployment then it is most likely to be a DB issue.
Zyxware default image2
| 2 min read
Slick is a powerful solution for slideshow/carousel. It supports nested sliders and can be implemented in your custom block of Drupal 7 site. Slick has jQuery dependency. Download the latest jQuery and use in your page or use jQuery update module for Drupal 7. Download slick libraries from https://github.com/kenwheeler/slick/. Extract the folder and place it in sites/all/themes/yourtheme/ and rename the library as slick. While creating slider, we need to use only slick.css and slick.min.js in the folder slick-slider/slick.
Zyxware default image1
| 2 min read
You can create your custom color box styles instead of using a plugin provided styles. For creating custom color box style go to /sites/all/modules/contrib/color box/styles copy any one of the folders. (You can find plain, default, and Stockholm syndrome styles there).Place the copied folder into your theme folder. Rename the folder with your custom name. Also, rename the CSS and js files.
Zyxware default image4
| 2 min read
The Webform Insightly module is used for the integration of unsightly CRM with webforms. This creates a new contact for each web form entry of our site. It adds opportunities for every subsequent entry of the contact. In this module, all configurations can be done from the admin side and any number of webforms can be added to the configuration. Here there is another option to import the Webform Insightly configuration in JSON encode format and similarly export the saved web form unsightly configurations.
Zyxware default image2
| 3 min read
Drupal 8 was released on Nov 19th, 2015. Though Drupal 6 end of life was declared on February 24th, 2016, there are still over 84,845 Drupal 6 websites on the web. What does end of Life Mean for Drupal 6? As per Drupal 6 end of life, the security team will no longer provide support or security advisories for Drupal 6 and the core of Drupal 6 will no longer receive community support.
Zyxware default image1
| 4 min read
Page load time is one of the most critical aspects of your website, and with Google giving higher rank to websites with faster load times, it gets all the more precedence. Optimizing these core areas can lead to considerable improvements in website performance. Focus on Core Modules for Achieving Fast Page Loads By disabling and uninstalling the modules you do not need, you can save considerably on page load times:
Zyxware default image4
| 3 min read
In one of my project I want to create user roles programmatically and the role should be enable and disable while module install and uninstall process. So first of all I need to create a YAML file based on the user role name with necessary definitions. The name of the YAML file should be the format user.role.sample.yml. Here sample is my user role id. To make the role enable and disable while module installation and uninstall we have to add dependency with enforced property.
Zyxware default image2
| 2 min read
To process very large data is very much time-consuming, it may lead to PHP timeout error. To process very large data, Drupal offers a batch API. The Batch API allows you to run one or more operations on a large set of data without timeout and feedback on the progress of the operation. Advantage of Batch API: Avoid PHP timeout. Display the progress of the process. Avoid out of memory situations. Let's look a simple example in Drupal 6 that use batch API:
Zyxware default image1
| 2 min read
We were asked to provide an estimate for a Joomla client who wanted to know the feasibility of converting their Joomla site to Drupal. Before we provide an estimate it is our practice to review the existing setup of the client. The version of the CMS is what we check first when we do the review. Read on to know how to know the version of Joomla sit without admin access.
Zyxware default image1
| 8 min read
Drupal 8's routing system works with the Symfony HTTP Kernel. To do basic route operations, you don't need to learn very much about the Symfony HTTP Kernel. Routing system in Drupal 8 is introduced by replacing the routing parts of hook_menu() in Drupal 7, and its parts, used for creating tabs, menu entries, contextual links, access arguments and actions are taken over by other sub-systems of YAML files (.yml) that provide metadata about each item and its corresponding PHP classes that serves the underlying logic.
Zyxware default image2
| 3 min read
This article covers, how to send email programmatically in your Drupal 8 site. There are two main steps to send an email using Drupal 8. First we need to implement hook_mail() to define email templates and the second step is to use the mail manager to send emails using these templates. Let's see an example for sending an email from the custom module, also the following name spaces.
Zyxware default image2
| 3 min read
DrupalCon Dublin is right around the corner, and the preparations are going full steam ahead. DrupalCon is like a Carnival that has come to town for the Drupal developers especially those in Europe. The excitement is rocketing sky high with a thousand and one things to get done before the 26th of September. The conference is to be held at The Convention Centre Dublin, Ireland from 26th September to the 30th September.
Zyxware default image3
| 3 min read
This article covers, how to send email programmatically in your Drupal 8 site. There are two main steps to send an email using Drupal 8. First we need to implement hook_mail() to define email templates and the second step is to use the mail manager to send emails using these templates. Let's see an example for sending an email from the custom module, also the following name spaces.