Styling a Webform is more or less like styling any other ordinary HTML form. Often you would like to change the style of the submit button and replace it with an image via code in your Drupal website. Although this is extremely easy it might cause the button to stop working, forcing it to reload and fail to show the confirmation message. If you are facing this problem while styling your Webform in your Drupal website read on to find the solution.
Articles
Webforms can be placed easily in a block in a Drupal website. You might face a scenario in your Drupal website where you have to place a Webform in a block and you need to get the nid of the node where the Webform block is placed to get an idea of which article the user was reading when they submitted the form. There could be other users for it too. Read on to find out how to implement it.
If you are trying to load a Webform into a template variable to be printed in a block in your Drupal website, the obvious choice would be to use the drupal_get_form(webform_client_form_XXX) function with the machine name of the Webform as the argument. However this will not work as the logic is only partially correct. There are a few more steps prior to doing this. Read onto find out.
Many users of the Drupal GMap module have discovered that GMap in their Drupal website has stopped displaying on Firefox and IE9 but at the same it is working fine with Chrome. The fix for this issue is extremely simple. Read on to find out more if you are experiencing this in your Drupal site.
A few users wanted a particular feature using Drupal Views in their Drupal sites. They wanted to have a Drupal Views block which should display the profile of the current user. The currently logged in user should be able to see their profile information but at the same time they should not be able to view the info of the other users. Read on to find out how to implement this feature in your Drupal site.
You might have encountered a situation in your Drupal site where the Drupal View you had created has been working correctly. However any recent content added to the site was coming up in the View but not when searching for it through your exposed filters. Read on to find out the fix for this issue.
It is quite easy to add ckEditor to your custom form in Drupal. The only thing you have to do is, add the following lines to your form:
'#type' => 'text_format',
'#format' => 'full_html',
For example:
$html = 'some html';
$form['front'] = array(
'#type' => 'text_format',// to load the ckEditor options
'#format' => 'full_html',
'#title' => t('Front'),
'#value' => $html,
);
The above code will create a form element with its value inside ckEditor.
This is a common question asked by many cPanel/WHM users. Linux shell access is demanded by most web developers due to its advantage over the normal cPanel interface.
Steps to enable shell access for a normal cPanel/WHM setup are:
As per the as per Kerala Municipal Act, 1994 (Section 254) it is mandatory for all employees who are drawing a half yearly salary of more than Rs. 12,000/- to pay profession tax. This tax is to be paid to the respective corporation/ municipality in which the company is situated. The tax slab is as mentioned in the below table.
A Drupal+Ubercart site with a store where users can purchase your products and no links to indicate the number of products anywhere in your site seems too annoying. It would be nice if there is a way to update the cart count as soon as a product is added to the cart.
Here is the code snippet to get the total number of contents in the cart:
<?php print count(uc_cart_get_contents()); ?>
You can theme the content accordingly to show the contents in style:
<?php print count(uc_cart_get_contents()); ?> items
The Drupal Views module provides pagers that lets you browse the items in the View via AJAX. Most of the time using the pager to view the next page will leave you at the bottom of the page when you expect to go to the top. This usually turns out to be a nuisance. Views currently does not provide a way to fix that. But there is a workaround to let you scroll to the top of a View after using a pager to load the page in your Drupal site. Read on to find out more.
Sometimes the best way to handle variable value changes on a Drupal site, would be with an admin settings form to show/edit the value. For example, while implementing a "send test mail" functionality on a Drupal site, we might want to set the recipient address at testing time. It would be easy to create an admin settings form instead of changing the addresses each time in code.
Code:
Zyxware Technologies have successfully done industrial training for 28 students of Semester 5, Computer Engineering Students of Central Polytechnic College, Vattiyoorkavu, Thiruvananthapuram. The objective of the training was to make the students familiar about the different departments and process in Zyxware Technologies and also equip the students with the fast growing developments in the field of Engineering and Technology.
QR code is a two dimensional bar code having information which can be recognized and interpreted through electronic signals only. QR code is displayed in square pattern with dark dots in white background.
You might have come across a situation where you need to set the title of the content as the filename for an uploaded image or where you might need to replace the spaces and special characters from the filename of an uploaded file. In such conditions you can use preg_replace. I will show you some example code where the output string will be nice and clean and can be used for setting file names.
Drupal Views is an incredibly useful module for Drupal users. This means that it will be a frustrating experience if it breaks by any chance. You might encounter a situation where the Views admin interface suddenly stops working leaving you with a broken UI with a flat set of lists with no AJAX and no theme. If you are experiencing a broken Views in your Drupal site and want to know the fix, read on to find out.
Drupal Views allows you to output results in a variety of formats including a grid view. There might be a situation where you would want to insert an additional div tag inside the td tag of the grid view to bring in additional styling like having a custom background color and spacing between the grid elements. You can implement this in two ways in your Drupal site. Read on to find out more.
The Drupal Webform module allows you to track and download Webform submissions in your Drupal site. You might occasionally face issues while downloading submissions to your Webform like getting an empty file or getting none at all. If that is the case then read on to find the fix.
Drupal Webform 3.17 users might find that the webform module has suddenly stopped working after upgrading to Webform 3.18. New webform elements fail to start showing up in the overview page. There is a simple but not so elegant solution for this issue. If you are having the same problem in your Drupal site then read on to find out more.
Webforms are used to create HTML forms with ease, track submissions and send confirmation emails to users after submission in a Drupal website. Users are notified of successful confirmation via messages send out by the Drupal Webform module. If you webform is redirecting users towards a blank page then follow the instructions below to fix it.