How To

Zyxware default image2
| 2 min read
With Drupal 8 just around the corner, every Drupal developer is in a nirvana of excitement and eagerness. Drupal keeps getting better and better every day and Drupal 8 will make website development and management a five-finger exercise, because this latest version of Drupal has included some amazing and potent Symfony components to serve the big businesses better.
Zyxware default image2
| 3 min read
To keep the default values of the step one form after successfully submitting the step 2 form, here is an easy way. Just pass the form state values of step 1 form as query parameters to the same page on submitting step 2 form. Set the default values of step 1 form as, first check whether the form_state value is set. If yes, set the default values of step 1 form fields with the form_state values. Else check the URL query parameters, whether this variable is set. If yes, then set the default value with that value.
Zyxware default image1
| 2 min read
Most of us have struggled with certain social media buttons to align or fix them in a particular manner. But what if we could get the count figure and display the result in our custom button. Here I wish to share one method to implement this. Let's experiment how to fetch total likes count for a website from LinkedIn.
Zyxware default image1
| 3 min read
As we know CSS is an important part in Front end development. By using CSS latest versions, we can make good dynamic effects just like jQuery effects. But sometimes we are spending lots of time to fix some cross browser issues or to modify some styling changes. And if you want to modify the common styling, we have to write many coding in CSS. But if you are using some preprocessors like LESS it will make the CSS coding easily because we can add the code with a small effort. There are many advantages when you use a preprocessor like LESS or SASS. Just we need to install the LESS and a compiler which compiles the less file into CSS. For more details you can refer http://lesscss.org
Zyxware default image1
| 3 min read
Do you remember the “The Complete man”? In the 90's, Raymond, India's largest branded fabric and fashion retailers, brought out its groundbreaking ad campaign which told the story of a caring family man; he was sometimes portrayed as a caring father, at other times a loving husband or a true friend who always looked stunning in a well-ironed Raymond suit. Even after two decades, Raymond continues to live on in our hearts.
Zyxware default image2
| 3 min read
This article explains how to replace tokens to webform, views, blocks and Drupal forms from the node body. The preg_replace function for replacing the tokens. The preg_replace function works in the same way as preg_match. preg_replace is used to search a regular expression and replace it.
Zyxware default image3
| 4 min read
The World Wide Web is getting cluttered with numerous brands and products. In this scenario, how will you get search engines to favour your Drupal website? Search engines are obsessed with quality content and so your “content” is ultimately going to decide how well your website gets ranked in search engine results. Drupal is the best and most efficient platform for you to easily create and manage your content.
Zyxware default image3
| 4 min read
I was using Domain Access and Domain Variable modules in my project. I have a lot of domain specific variables which have different values on production, staging and development environments. It takes me a lot of time to set these variables with the corresponding staging and development values each time when I reset these environments. So I was thinking of creating a drush command to update all these configuration variables in single step and I did it.
Zyxware default image1
| 4 min read
This article covers to the How to integrate Single Page Site module in a Drupal website. Single page site is of one of the newest trends in web designing. It allows you to automatically create a single page from a menu. The single page module will render all contents from the configured menus and links.It will then override the menu links so that they refer to an anchor instead of a new page.
Zyxware default image4
| 3 min read
Before we discuss on how to to join multiple database tables using db_select in Drupal 7, let me tell you that we can add as many joins as we want and most methods such as, 'fields', 'conditions', joins etc. can be called multiple times. However, one thing may be worth mentioning is that the call to join() needs to be separate. It should not be "chained", meaning that one should use this,
Zyxware default image4
| 2 min read
Identifying size of device screen is easy in a Cordova application. But is not available directly. We can get the screen object from window.screen and it has width and height properties. The problem is, these width and height may not represent physical screen, but the concept called CSS pixel.
Zyxware default image1
| 3 min read
In 2003, Hutchison, a multinational telecommunications company, reflected on various strategies to make its mark in the crowded telecom market. It had to communicate to its customer about its brand proposition and make a promise. And this is what they did…