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.
Administration Menu Source module is used to display different menus based on the roles existing in the system. This module is only available in Drupal 7. We can install the module using the following steps :
Deleting a content type in Drupal 7 is very simple. We just go to admin/structure/types and click delete button of the content type which we need to delete. But in the case of Ubercart, there is no delete link in product content type (admin/structure/types). So how we can delete this?
Many Drupal users wanted to know if there was a functionality similar to UberCart test_gateway for Drupal Commerce for emulating the collection of credit cards. If you are faced with the same question while running Drupal Commerce on your Drupal site then read on to know the possible solutions.
By using Views Slideshow module we could simplify the procedure of developing a slideshow in Drupal. As per the requirement I have found one feature lacking, i.e, a full screen option. I like to introduce a script that would turn slideshow images to the size of browser window.
In one of my work, I want to programmatically uncheck the checkbox option of 'Generate automatic url alias' for a specific node editing form. For this, I have created the following form alter for the content type. I have added a custom after build function for the necessary content type in the form alter.
When I planned to use media upload in CKeditor for uploading files to the site, I faced one problem, i.e. I could use only predefined image style as preset to style my image. I wanted to use a custom preset to media upload. To achieve that we have to do some customization.
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.
You can create your custom colorbox styles instead of using plugin provided styles. For creating custom colorbox style go to /sites/all/modules/contrib/colorbox/styles
copy any one of the folders. (You can find plain, default and stockholmsyndrom styles there).Place the copied folder into your theme folder. Rename the folder with your custom name. Also rename the css and js files.
The Webform Insightly module is used for integration of insightly CRM with webforms. This creates a new contact for each webform entry of our site. It adds opportunities for every subsequent entry of the contact. In this module all configurations can be done from admin side and any number of webforms can be added in the configuration. Here there is another option to import the Webform Insightly configuration in json encode format and similarly export the saved webform insightly configurations.
Coder is a Drupal module to check coding standard issues in custom modules and themes. It can check any files on coding standard issues according to Drupal specifications. This method uses latest composer and drush to install latest coder. Feel free to skip corresponding parts as you need.
In Drupal 7 we can upgrade a module in many ways but we fail on upgrade feeds excel module. The reason being the newer version of the module is entirely different from the old version folder structure and file naming. We can overcome this situation by uninstalling the older version and installing the new version. Sometimes we cannot uninstall the module due to the module dependency and data lock. We can achieve this manually using the following steps.