Drupal Technical
| 1
min read
It is important to keep our drupal site up-to-date. New releases of contributed modules and Drupal core come out periodically to address critical security fixes, and it's important to stay on top of updates as they are released. It is difficult to download the latest version of each module separately and then remove the old one from the sites/all/modules folder and put the the new one in that place and all. Drush comes to help us in updating the modules in an easy way. The following are the steps to update the non hacked modules using drush
Drupal Technical
| 2
min read
By default in drupal if we click on any taxonomy term, it will execute the taxonomy/term/% menu. We can change this default taxonomy/term/% menu path to a custom menu path. In one of my project I had a requirement to execute a custom function for my vocabulary in stead of executing the taxonomy/term/% menu and I had found a solution for this. The following are the steps to be done.
Technical Solution
| 2
min read
The Apache Solr module integrates Drupal with the Apache Solr search platform. Solr search can be used as a replacement for core content search and boasts both extra features and better performance. The apachesolr module requires the external PHP library,"SolrPhpClient". If this is missing in your apachesolr module directory, it will show the following fatal error after installing or updating this module.
Drupal Technical
| 2
min read
In one of the Drupal projects I was working on, the site had a content type with a field image which had multiple number of values for that field. We were required to create a separate slide show for each content of this content type. Using the jQuery Cycle plugin, you can create the slide show quite easily. Read on to know more
Technical Solution
| 2
min read
One of our Drupal projects required the value of a text field to be changed according to the country selected in a particular select field. This is a common situation encountered by web developers when working on HTML. This can be easily achieved using jQuery. Read on to know more
Technical Solution
| 2
min read
I have a number of affiliate links in my page. The affiliate links are generated dynamically and so, I don't know the number of affiliate links generated in the current page. I had a requirement to open all affiliate links simultaneously upon clicking on a search all link in my page. Initially, I was not aware of the jQuery each function. So, I placed all the affiliate links in a particular div and used the size function to get the number of 'a' tags inside that div and used a 'for loop' to iterate through the 'a' tags and applied the behavior. However, after that I found there is an each function in jQuery, which can be used to itereate through all the elements with a particular identity.
Drupal Technical
| 2
min read
In one of my project I had a requirement to create an image in a particular image style in a specific folder, when uploading the image itself. In this article I will be explaining how to achieve this using the function image_style_create_derivative in drupal 7 to create an image in a particular image style. One another advantage of this function is that this will create the destination folder if it does not already exist.
Drupal Technical
| 3
min read
In a Drupal site, I was working on, I found that many of the modules were unused. Their presence was increasing the size of the site and consuming time when searching for useful info. So I thought of removing these modules.It makes our job a lot easier if we are using Drush Read on to know how to remove unused modules in a Drupal site with the help Drush.
Drupal Technical
| 3
min read
I have a few images in a folder on a Drupal site I was recently working on. The Drupal site also had a content type that contained a title and an image field and I had a requirement to create a node for each of these images. Read on to find out how to add a file to the image field of a node programmatically in Drupal 6.
Drupal Technical
| 2
min read
I have created a module for my Drupal project. That module requires a vocabulary that should be created when installing the module itself. To create the vocabularies, while installation itself we have to implement the code in the install hook. Read on to know the code to create a vocabulary named as 'Categories'.