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.
Most of the operations that are done when developing sites in Drupal deals with enabling and configuring modules that are to be saved for future use. This is most certain times a time consuming process. But what if we could automate these tasks by developing a deployment module. Let's find out how we could achieve this goal.
As part of form creation process in one of our recent project we came across one module called 'Client side Validation'. As the name implies the module supports basic as well as most advanced sort of validation methods. Validating the form user inputs is the one task we could not ignore on developing forms for a web project. Let's find out how the 'Client side Validation' will make life easy.
One such feature used widely throughout the site is the use of popups for alerting users. Popups are nothing new to web development. In fact Drupal provides multiple tools to create popups including the more widely used Colorbox plugin. For this project we chose to go with Ctools modal popup as it provided more options than Colorbox. Read on to know how to implement popups using Ctools.
A Payment gateway tends to offer multiple types of payment services, that provides onsite and offsite options. Onsite payment is processed by a third party API using web services with the information gathered from our site through a checkout form (For example : Credit card/Debit card credentials). Offsite payment method, on the other hand, processes data entered in the payment gateway page. It redirects the users to the processing page of the payment gateway using the checkout form. After the payment is completed, the user will be redirected to the payment page, from where the user can move forward or backward in the checkout process. Here, let's take a look at the creation of custom offsite payment gateway module.
To add a newsletter signup form to your website, you just need to follow these simple steps. Follow these steps in the order they are provided and you could easily embed newsletter sign up form to
where you want on your website.
Responsive sites and adaptive sites are the same in the sense that they both change appearance based on the browser environment they are being viewed on. One of the major challenges in creating a web design is how to create one that has lasting value, at least for a planned period of time. It is more likely that a first time visitor/customer may not be familiar with your products or services. There are other possibilities that your visitor is in a real hurry, or they’re on an iPad, at a coffee shop. Or maybe they’re on some device for which a website hasn’t been planned yet.
Moving to Drupal 8 deserves careful consideration in the technical front,especially when it comes to migrating from an almost stable platform like Drupal 7. Having said that, considering the advantages of Drupal 8, it will likely be the best solution for your business.
The term ‘Migrate’ in the context of Drupal means re-creating the content and configuration of a source site (usually Drupal 6 or Drupal 7) in a new Drupal 8 installation. In earlier versions of Drupal, the common practice was to provide an upgrade path. i.e., update the code to the latest version and then upgrade the database structure according to the code. Once it is done, the content is updated separately.
In one of my recent project I had a task to create a content type with a select list field of all image styles. But how can we get all image styles in Drupal? In Drupal there is an option to create different image styles using a module 'image'. Image module allows users to upload images into Drupal with proper permissions along with this its thumbnails and additional sizes are created automatically. Image module also gives an image_styles() function that can be used to get all image styles and their settings.