How To

Zyxware default image3
| 1 min read
In Drupal, while adding a menu item, we can give it a title, description, path and such details. It is not possible to give images for these menu items at the time of creation, by default. If you are looking for a solution, then read on. This particular task can be achieved by overriding the theme function theme_menu_item_link() in our theme's template.php Use the below function in your template.php :
Zyxware default image1
| 1 min read
There may arise situations when you would want to display the contents of a block inside a template file or along with any other output variables. module_invoke() function can be used for this purpose. The module_invoke() is a function to invoke a hook in Drupal. The syntax for module_invoke is different for Drupal 6 and Drupal 7.
Zyxware default image4
| 2 min read
Forgetting a password is a usual scenario. The first thing that may come to your mind when you forget the password of your site is resetting it. If it is a live site, then we can ask to send a new password by mail. But what is if it is your local site where no mails are configured? well, I know a trick or two to solve this programatically. If you too want to know, then read on. Step 1 : Create a new file and copy the below script in that.
Zyxware default image2
| 2 min read
The apt-cacher-ng configuration requires certain changes to be made on the client side. Few changes has to be made on the client system so that during the download process the client system can check for the packages in the apt-cacher-ng server. And if the apt-cacher-ng server doesn't have the required package it will download it from the web. So the client configuration helps to make the download more faster and also helps to reduce the internet connection usage. The few things that are to be noted before configuring apt-cacher-ng clients are
Zyxware default image4
| 3 min read
Tagging a content properly will definitely cause your website's contents to come up properly in search results. Tagging can be done manually and automatically. If you are using a Drupal6 site and you want to tag your contents automatically, I know exactly what you need. For that I would prefer you read on. Our goal is to tag the contents automatically for which we require the following modules :
Zyxware default image1
| 3 min read
Multiple database access in a site can create overheads. There is a chance of this being adversely affecting the site performance if the size of the website is considerably large. Consider a function that returns the details of a new product. And if we call this function in different regions of a page, the query will be executed for each function call. ie, multiple database requests are made for the same result.
Zyxware default image2
| 2 min read
One of our Drupal clients had requested us to work on their Drupal website which was built around the ability to search the content on the site. Since the default Drupal search was a bit heavy they had opted to use ElasticSearch which was a dedicated lightweight tool for this purpose. Before developing we wanted to check ElasticSearch was running on their server. Read on to know how to check whether Elastic Search is running on your server
Zyxware default image2
| 2 min read
I was working on a project where the requirement was to display slideshow in a page.Slideshow was created using views_slideshow module with fields as content type field holding image. After all the images were rendered using slideshow a blank image was being displayed before the next transition of slideshow.Here we encountered a problem of unwanted blank image being displayed if you are also facing the same issue then read on to know how to solve this.
Zyxware default image2
| 2 min read
HTML5 video is a new standard that allows you to add videos to your site without the need for plugins. Any additional software is not required in the user's browser for playing HTML5 standard video play. Drupal comes up with a contributed module that is video.js module. Video.js is a HTML5-based video player with a built-in Flash fallback for older browsers.Read on to know how to install and configure a HTML5 video player for your Drupal site using Video.js
Zyxware default image2
| 2 min read
We as a PHP Drupal web platform developer most often has to face the situation to export data from one table to another table of same database or to table of another database (if site uses multiple databases) during the process of any change in normal work flow. Most of us normally think to export the data from one table to another by firstly querying the required data from source table and then looping through the query result and inserting them to destination table. This can be simply achieved with a single query.
Zyxware default image3
| 4 min read
Panels in drupal is a very usefull feature for displaying the contents in a well organized manner. The site administrator will have full control over the panels.Creating panels via User interface is not a complex task. But there may arise situation when you need to create this via code. This article explains how to achieve this via code. Creating a custom content pane using the ctools content type. Step 1) In the custom module implement the hook_ctools_plugin_directory , to know where the ctools plugin is actually stored
Zyxware default image2
| 3 min read
Drupal module uses a lot of functionality. Once we enable a module we add many functionalities to Drupal. Sometimes we do not want to display the functionality provided by module but we do want the functionality to work in the background. For example creating a new account is functionality that can be hidden from users. This can be done by hiding some tabs or links in Drupal. Read on to know how to hide existing menu tabs in Drupal.
Zyxware default image2
| 3 min read
This article lists some of the basic MySQL commands how to create a new database, a new database user and granting privileges to a user. How to create a new database from terminal. The first step here is to log in as the MySQL root from terminal using the following command. mysql -u root -p Now this will prompt for the MySQL root password. Enter password : After entering the MySQL root password we will be able to log in to the MySQL prompt. The next step is to create the new database.
Zyxware default image3
| 4 min read
While working on a Drupal project my task was to enable the Drupal feedback module and when a feedback is added by a user, send a mail to corresponding email id. However in the feedback module there in no option to send mail by default. In this article I will be explaining how to send a notification mail to the corresponding email id when a user adds a feedback.
Zyxware default image3
| 3 min read
Apt-cacher-ng can be defined as an apt proxy which caches the packages which you download locally on your computer. Consider you are using a network of computers and you have to install a package on each system then it will be great to configure an apt-cacher-ng on any system in your network so that it will cache the packages once they have been downloaded. Read on to know how to configure Apt-cacher-ng server in Ubuntu