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.
Drupal Technical
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.
There are many ways to get delete the Anonymous user account from the Users table. A wrong query like 'uid != 0' or Views bulk operations may cause deleting the row.
Media module offer an extensible framework for managing files and multimedia assets, regardless of whether hosted on your own site or a third-party site - it is commonly called as a 'file browser to the internet'.
We had a requirement in one of our E-commerce site built using Ubercart module to add a custom key while saving an ubercart order, the key had to be used later on based on which the status of order is changed. Read on to know more.
Slick Carousel is a Drupal module for ken wheelers slick carousel. Slick Carousel is fully responsive and it works with views.
In one of my recent projects a requirement was to add a gmap to a node view page. I thought of writing it down so that some one may find this useful.
Panels gives you the ability to create custom pages effortlessly. These custom pages can have multiple regions of content. Suppose, if you want to create a home page with a Slideshow, included in your page layout positioning on the top and two columns below it. Then panels help you to make it easily.
You can revert features in deployment phase by just adding an update hook and calling features_revert() in install file. Read on to know the code changes to add.
Drupal rooms module is a booking and room management solution for businesses such as hotels and rentals. Availability and pricing of rooms can be managed easily by using this module. Integration with Drupal Commerce module enables handling payments. Here is how we can install and configure rooms module for use.
Facebook plays a vital role in marketing your business. Facebook provides share buttons which can be embedded in your website, enabling you to share the website's data from within the site. Let's find out how this feature can be implemented in a Drupal site.
Hi guys, here I am going to explain how to enable syntax highlighting in ckeditor. Lets assume that you already have a Drupal 7 installation ready and CKeditor also (https://www.drupal.org/project/ckeditor).
Grey box testing is the combination of both White box testing and Black box testing method. In white box testing, testers are aware of the internal structure of code where as in black box testing testers aren't aware of the internal structure.
You might have joined different tables in the same database. How would it be if you could join different tables from different databases. Sounds good!! right? I had to go through an uncountable number of tutorials and blogs to make this happen. All thanks to Drupal.
There are certain conditions you have to ensure before using this method. First to make sure is that you have both databases on the same server. And the second is a fit. The second is about user, ensure both have the same.
Requirement was to get all the users in both databases.
Drupal provides a handy of global variables. Thanks for the tiring efforts. You might know about the interfaces in drupal, it has a use interface and an admin interface. Suppose we are using bartik as our user theme and seven for admin interface.
Now a days infinite scrolling becomes the most popular pager in websites. Basically it do append new content to the same page through ajax rather than redirecting to a new page. It is more user-friendly and it take less time to load new contents to the page when comparing to the conventional pagination. Because of the use of ajax it takes less bandwidth than ordinary pagination.