While handling a view in one of my Drupal 7 project I need to display only a text message for empty result. I used VBO (View Bulk Operation) in that view for delete, enable, disable etc operations.
But it shows the VBO form even if there is no more data to display. To hide the VBO form in an empty view, do the following :
Technical Blog
Drush commands are not the strangers for drupal developers. We use drush to clear cache, enable-disable modules, install-uninstall modules, set variables and even more.
Have you ever found it difficult to style a block with the block unique ID, if yes then read on this. There is this amazing module named Block Class which will help you in adding a class name to the blocks.
While working with entity, I always had a doubt as to why we use Entity and Entity Field query except Db_select() in Drupal. It is a great and fast way to organize and extract our data in Drupal sites. Here are a few more points to support these concepts :
Flex Slider is a power full Drupal module which integrates with the flex-slider library which allows us to build responsive and resizable slideshows
My last work was related to theming a Drupal website. While theming I've faced a major issue ie., in different OS and different browsers the styling of pages have slightly different changes .
How to solve this issue?
Sometimes, we may come across a situation where we need to exclude a particular page from being indexed. We had a similar requirement in one of our projects where we had to exclude home page from being indexed by apache solr search. Read on to know how we executed it using hooks provide by apachesolr.
I had a requirement in one of my Drupal project to generate PDF from HTML. I had implemented the PDF file from HTML using the module MPDF. Let me explain you the following configurations for its working :
Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first web sites. Bootstrap is the array of features and reusable components.
The purpose of hook_file_download is to Control access to private file downloads and specify HTTP headers. The hook_file_download_access is restrict the access to certain files based on the entity type. e.g.,
only users with access to a node should be allowed to download files attached to that node.
Steps to upload private documents to the web page by storing file id in a system variable and delete the file when updating the same with necessary validations in Drupal 7.
Highcharts is a charting library. It is very useful for adding interactive charts to your web site or web application. Follow the steps given below for highchart graph implementation with customizing of colors in each columns in it.
While working with a project, I need to display a view in colorbox popup. I have done the following steps for processing popup for views.
We had a requirement to show the group field in user registration form using Organic groups. Inorder to show group field in user registration form first we have to install the Organic Groups module (OG), Organic groups register module and create an Organic Group.
Creating a module by ourselves, or a new requirement by client would let you to learn more, to research more. One of the latest requirement was to AJAXify a form. To do AJAX-ification was always a troublesome for me.
To replace a div by another on submitting a form always used to top the list of requirements. So I've choose to share how to use a handy command provided by ajax to replace a particular div by another.
We recently moved our Drupal code to a newly created 'public_html' folder for some reasons and set up the website. But then, our website was showing a 500 Internal Server Error.
We were on a venture to convert all our Drupal 7 themes to their responsive versions and we got stuck in between. The issue was with the main menu that it was not displaying sub links. We have gone through the code carefully and we found that only the top level menu items are being set to the main menu variable. To render all menu items from main menu, we should have defined it in theme's template.php file.
You might have seen how to set up http request in core PHP. In this article I'm introducing a Drupal function called 'drupal_http_request' which handles our http request.
l() function is a beautiful thing available in Drupal. It is a simple and secure way to create an HTML anchor tag. Usually we think of l() function to format an internal anchor tag which supports things like clean URLs. You can still create an external URL link with the l() function as an anchor tag.