Sometimes we use Drupal view_query_alter to add or modify the view's where clause. To add a new WHERE clause we may use add_where property. Whenever we use an add_where, it will create a WHERE clause along with an AND condition. There will be some cases were we need to use OR instead of AND. So if you want to know more about how to use OR clause in hook_view_query_alter, read on to know more.
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'.
When I was working on a website in Drupal 6 I wanted to theme the pager provided by views in a custom way. Finally I found a solution for the issue. If you also want to theme the pager in a View for your Drupal site you can follow the method below.
We are happy to announce that we will be conducting a Drupal bugathon at our office at Sasthamangalam, Trivandrum on the 12th of October, 2013. If you are a Drupal developer and you would like to get some guidance on how to contribute to Drupal you are welcome to join us. Bring your own laptops for the session.
One of our Drupal clients wanted to us to enable members of her site to bookmark their favorite nodes. We went to work immediately as
we knew that this task could be accomplished by the Drupal Flag module. The flag module did enable us to implement that feature easily. Nevertheless we needed to add text near to the flag button/link on a specific node without affecting its display in a view. Read on to know how to dd text to a flag in a node when working with the Drupal Flag module.
One of our Drupal 6 clients wanted us to implement a feature where nodes belonging to a particular content type where to to be posted to their official twitter feed as soon as they were published. We had done a feature on How to automattically tweet published content on twitter from a Drupal 7 site. Read on to know how to do it in Drupal 6.
On one of our recent projects we had an issue where the Drupal site search was not working. There was a search.html file present in the home folder to handle a Google custom search page outside of Drupal. Since the filename was not the same as the drupal search path we did not expect it to be the cause for the Drupal search to not work.
Zyxware, in association with MES - AIMAT, Aluva, Kerala, is conducting a training session on Drupal at MES - AIMAT, Aluva on Sep 26th, 2013. The session is targeted at beginners who wish to learn the basics of building a website using Drupal.
We have created and released a new module Boost Captcha to allow static page caching of pages with forms with captcha without running into the captcha session timeout errors. By helping boost cache more pages the module will allow for better performance without compromising on spam protection.
When we try to theme a drupal website certain case we need to create particular region in the drupal website. Adding region for a drupal website is not a hard task, even a developer first creating a drupal website can create a region. In order to add regions inside a drupal website we only need to add a few lines extra for that. Below there are three version of drupal for the drupal 6 and 7 version creating the region is same but for the drupal 5 version it is slightly different.
A few Drupal users had found out that their site Contact form does not load in Colorbox when calling it with the relative page url. If you are facing the same issue with Colorbox in your Drupal site the continue reading.
One of our Drupal clients requested us for a feature in a mobile version of their Drupal website in which, a user accessing the mobile version of their website, should be able to automatically initiate a call on clicking the telephone number appearing in the website.
While working on Drupal Views, we might want to examine the query executed by the View to get its data. Analyzing the query may help us to identify why the view does not produce expected result. Read on to know how to view the SQL query executed by a View.
In Drupal, while viewing a content type it will display the content type view with a comment form. If we want to remove the comment form from the view node page we can disable/unset it using hook_node_view function. But what we have to do if we want the comment form in a separate tab.
Views Bulk Operation module is helpful in the cases where we need to perform a particular operation for more than one row in a view. Some of the operations includes deleting multiple contents, publishing/un-publishing contents, change the author of the content, send email etc (Refer the image below). These are the default operations available with the module. Now, what if you need some of your operation to be performed other than this? That too is possible. You may read on if you want to know how it can be done.