Skip to main content

Posts

Views exposed taxonomy exposed filter show "Content Taxonomy Tree" or "Taxonomy Term Reference Tree Widget" structure

Well Recently I came across the situation that the View exposed taxonomy field should show like "Content Taxonomy Tree" or " Taxonomy Term Reference Tree Widget "   . It took quite sometime to figure out what to do. When i Figured it out i decide to write a little bit about it. Following steps will help you to achieve this.  1) You need install the module Taxonomy Term Reference Tree Widget   2) You should have the view with taxonomy field field as exposed. 3) Copy and paste the following code on your custom module.  4) You should change the YOUR_MODULE_NAME to your custom module name your-toxonomy-field to your exposed taxonomy field '#vocabulary' => taxonomy_vocabulary_load( 3 ), Instead ' 3 ' you should keep your vocabulary ID.

How to enable Drupal Clean Url in a Goddady Server? [Drupal clean url is not working Godaddy server]

Well, this an idle problem when you porting a website from other server or local server to Godaddy. Here are the solution for that,   1) Please make sure that there is .htaccess file is there in you website root directory.   2) If not there .htaccess file, please copy and paste .htaccess file from your old web site root .Or you want a fresh .htacess, you can copy that from a fresh download  drupal web root. Please give necessary permission for a while.   3) Now logged in Administrative role user ,      And navigate to the path " www.your-web-site.com/admin/config/search/clean-urls " instead of the path " www.your-web-site.com/?q=admin/config/search/clean-urls ",      No you will get the checkbox option " Enable Clean URL " , so tick that checkbox and Save the configuration.   It the above option started working, Please do not forget to change the .htaccess file permission back to 644 . If the above options are not wor...

Drupal 7 How to add a button act like "Clear all caches" in the custom form in custom module? OR Example for button act like "Clear all caches" in the custom form in custom module.

This Docs help you to understand How to add more than one submit button in a single Drupal 7 Custom form in Custom module? More than that How to add a button act like "Clear all caches" in the custom form in custom module? Please find the following code, will help you to achieve this.  In the code we do have implemented hook_menu(). After enabling this code in your custom module you can go to the page where it appearing the form, here the path is " example/extrabutton_form", You can see two buttons like ' View my username ' and ' View my user ID ' , By clicking this  button it will perform certain action and show the respective result. This how the "Clear all caches" button works.

How to configure Drupal7, varnish, authcache2 and ESI in Nginx server?

This is step by step procedure for, how to configure the authcache, varnih and ESI for the drupal7 project in NGINX erver. To configuring the Nginx Server use the procedure from document " http://www.geoffstratton.com/2014/03/nginx-php-fpm-apc-ssl-drupal/ " Well, make sure your nginx server is up and running. 1.Configuring the Authcache module.      Download the module from https://www.drupal.org/project/authcache    Enable only the authcache module    Go to admin/reports/status , then you can see the Authcache area is red and saying that there is no back end has been configured.   2.Configure Varnish on the back-end[nginx server].     Using the Following commands,       $ curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -     $ echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-3.0" | sudo tee -a /etc/apt/sources.list     $ sudo apt-get update ...

How to enable clean URL for Drupal 8 in NGINX server?[Drupal 8 + NGINX + Clean url + Drupal7]

Well I was wondering from last couple of hours how to enable the clean url for drupal8 in my local nginx server. It is also works for drupal 7. Its very simple do edit the " /etc/nginx/sites-available/default " , Please type the following command on terminal. $ sudo gedit /etc/nginx/sites-available/default And search for the line text " try_files $uri $uri/ =404 " under location/ server configuration area and comment it . Then add these lines to below that, as like              location/ {                ..........                ............                #try_files $uri $uri/ =404; <============= You need to comment this line                expires max;        try_files $uri $uri/ @rewrite;               ...