I was deep stuck in a Requirement Analysis, when one of my colleagues came to me asking about a feature in Apache Solr search. You may be wondering why she came to me, Trust me that was the exact thought I had at that time. Well, then I realized that the reason she came to me was because I had previously built a website using the Apache solr search with the help of Facet API. While doing that project I had thought of documenting some of the tasks which I had done, but couldn't do so.
Technical Blog
One of our clients was trying to upload a pdf file on a node page in their Drupal website. The file was more than 25 MB in size and Drupal was not allowing them to upload the file as it had crossed the max file upload limit and they needed this to be done very quickly. As we were in charge they requested to come up with an easy way to do that. If you want to now the easiest way to set the max file upload size in a Drupal site read on to know more.
You have heard the word proportion in Architecture. If you want to call a Architecture classical, the key concept should be proportion, i.e, correlation of one element to another. Same in the case of UI. User Interface(UI) acts as a medium of interaction between the User and the Web. In a web application the most important aspect is the user interface, because this is the only part end users are going to view.
Before we start, I want to you to know how we reached to this article"Why is proportion important in UI".
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 :
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.
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.
Fusion is a base theme, with different layout and Drupal UI configuration. This theme includes a "starter" subtheme for CSS theming. If you are also looking to start a subtheme using fusion base theme, continue reading...
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 :
Taxonomy allows to categorize content in a drupal website. The basic elements of the Taxonomy module are
Terms
Terms are used to describe content.
Vocabularies
Vocabularies are a collection of terms.
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.
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.
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
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.
You may be familiar with creating custom forms and creating custom views. But are you familiar with displaying a view according to the submission of your custom form and that too in the same page? If you want to know how you can do this, you may read on.
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
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.
[Drupal] How to send a notification mail to the corresponding email id when a users adds a feedback?
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.
Highcharts is a charting library written in pure HTML5/JavaScript. Without generating the image we can display the graph. I had a requirement to generate a multiple graph on a single page in a Drupal site. Read on to know how to implement multiple graphs on single page in Drupal using highchart.
One of our Drupal clients required us to cancel the recurring fee order option which was pre-configured in Ubercart using Ubercart recurring fee module in their Drupal 6 site. If you are a Drupal user facing the same situation with Ubercart in your Drupal site and would like to know how to cancel the recurring fee order then read on to find out the solution.
You can see certain options in our theme ie in settings page of our Drupal themes like LOGO, SLOGAN etc. We can also add our own options to a theme In this article I will be explaining how to add additional theme settings options to a Drupal 7 theme using hook_form_system_theme_settings_alter.