Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to get Clean URL in Drupal 7

Hello Friends, In Drupal generally URL setup like "http://www.abc.com/?=node/38". If you are looking to setup clean URL like "http://www.abc.com/node/38". Please follow the below steps for the same:: 1) Open administrative panel 2) After...

Theming the maintenance page and Database offline Page

Maintenance page overriding Though Drupal provide very elegant page for the maintenance. What if you want to customize it. Yes this could be done by overwriting the page The system includes a default maintenance template, which is loca...

How to change site wide validation required maker, Drupal 7

The below code will help you to to change the site wide validation required marker as well the hover text. Though there are various approach you can do but this is one of the massively used approach. Go to Drupal Root Folder->includes-&...

How to define category in contact us page

In this post we have learner how to enable contact us page This form will always send email to the particular listed recipient email id's . But What if you have different departments in your company and each department want to use this con...

Controlling visiblility of blocks in Drupal 7

Go to Structure -> Blocks Here you can fill the information regarding a block like, Block Title (you can override the default title for the block. Use to display no title, or leave blank to use the default block title. This field suppor...

The default Drupal themes

There are four default themes included with Drupal 7 To view available themes, log in to your site as an administrator then click on the Appearance link on the Toolbar. The Theme Manager displays a list of all the themes installed ...

print drupal 7 db_select() query

This how you can can print the query with parameters generated by db_select() . print strtr((string) $query, $query->arguments()); die; //Stop execution here and show me the query make sure you print it befo...

problem in implementing Clean URLs, Drupal 7

if your drupal installation having problem in implementing Clean URLs then please check your Apache is configured as mentioned below Apache uses httpd.conf file for its configuration. In order for Drupal to implement clean URLs, Ap...

Actions and triggers in Druppal 7

Many time it happen we want the Drupal to perform certain task or action automatically We use action in drupal to automate certain task mainly task which need to be acted upon content and user account. By default there are number of simple and ad...

User login to appear in a block

There could be a situation where you need to call login on multiple pages or block the below snippet of code could be helpful in this situation Calling the form function directly could help you getting the login form in a block or page ...

Drupal t() function and translations

syntax : t($string, array $args = array(), array $options = array()) Every string that may be displayed to a user should be wrapped in the t() function actually it takes the responsibility for translating strings from one language into ot...

Creating Your First Module

Creating module is easy in drupal Steps you need to follows are as below. Creating the module directory Creating the .info file Creating the .module file Where does your custom module goes? Its always better to keep contrib and cu...

Upload multiple files in Drupal 7

There are lots of modules available for uploading multiple files and images in Drupal 7. Each of them have their own feature and might be suits on your specific requirement. Here is a list of all available modules for multiple file upload opti...

Recovering Drupal Admin Password from From database

If we forget administrator password in Drupal then it is very easy to recover it using Email or Drush. But situation get tougher when we don't have Drush and email notification enabled. In this way only database update query is the best way but ...

Drupal 7 views filter by dynamic taxonomy term

If we want to create a list of contents which can be filtered by a taxonomy term the we can use Views 3 contextual filter. This will enable views to get filter from url or also from current node which is being viewed in content area. Get comp...

Get nodes with the same taxonomy as the current node

Use following steps to create a similar content block for a particular content (Similar contents work on the basis of taxonomy. So first create a taxonomy and assign this to your content type): 1: Create a view with block view. 2: Set fiel...

Implement hook_theme in drupal 7

As per Drupal's definition "A hook is a PHP function that is named foo_bar(), where "foo" is the name of the module (whose filename is thus foo.module) and "bar" is the name of the hook. Each hook has a defined set of parameters and a specified r...

Drupal 7: how to restrict file access to specific user roles

The best way to restrict the file access, is to set default download method to "Private" from Configuration->media->file system. After making this change we can use Content access module to manage the access of files. I found this lin...

Create a custom module in Drupal 7 to create a list page of custom content type

Here I am giving a brief idea of creating a custom module for newbie. For taking an example, I am creating a list of contents of my custom content type. However for creating custom pages, we can use Views module and it is highly customizabl...

Create excel reports in Drupal 7

PHPExcel library is basically used for creating reports in Excel format. But if we are using Drupal then there is list of contributed modules to achieve this feature and build on top of PHPExcel library. You can use one of the following module...

Create a custom token for taxonomy in Drupal 7

Taxonomy Token module is very useful for this purpose but only in Drupal 6. As In Drupal 7 The core Taxonomy and Token core modules already offer similar features. In Drupal 7 Taxonomies are related to nodes through fields of the type Term re...

Create a custom token in Drupal

Drupal in it's core have lots of tokens which are basically shortcode or placeholder for any kind of information related to Node, User or System itself. Get a complete list of available tokens in Drupal from: https://www.drupal.org/node/390482...

How to build complicated block views without using views module

I came under a situation where I have to do lot of sorting and filtration, which was quite hectic doing with views then I found this tutorial which gave me a start where I can do things even without using views. Please find the reference link ...

How to fix ctools_add_js() not working issue in ctools modal form in drupal 7.x

Hi All, I am sharing my recent experience with C-Tools modal form, I was adding custom js file in ctools modal form in Drupal 7.x using jQuery version 1.8 ctools_ad_js(); and add my code under document.ready(), but my code didn't...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: