Comment module in Drupal makes it possible for users to comment on the nodes we create. And also the users get a chance to discuss on the topic as well. In this article I try to demonstrate how the comments for a node can be wrapped inside a fieldset. Isn't it a good choice? If you haven't done it, now will be a good time to do so.
Technical Blog
Hey guys my requirement is to create a view attached with a map(highlight the map with the results) for that you have to enabling Location, GMap, views module.
Drupal 7 Views provides an option to add php to the Views footer in a View page. The option is called Global PHP. It allows you to add PHP code to views, to modify its output without adding code in a separate php file. However this option shoud be used with caution as a php error here can bring down the whole site and it would be difficult to detect. There is an alternative though. Read on to know how to add an SQL query to the global footer in Views without directly placing the PHP code in a view.
We had a requirement by one of our Drupal client of configuring IMCE to CKeditor instead of ckfinder. I have faced the following issues after changing the file browser type as IMCE in CKeditor.
I have a vocabulary in my drupal project and I want to make the vocabulary as a single select in one of my content types. I can do it in the form_alter. But to select the vocabulary item in the form_alter, I need its vocabulary-id. I dont want to hard code vocabulary-id in my code, so I searched for a drupal core function to get the vocabulary id from its name. In drupal 7 there is a function to get the entire vocabulary object from its machine name. But in drupal 6 there is no core function to get vocabulary id from its name. So I created a custom function to get the vocabulary id from its name. See the following function I programmed, to get the vocabulary id from its name.
Sometimes working on Drupal Views is very intimidating as this a very complex module
serving a variety of needs. No wonder it is one of top Drupal modules. Once I had a particularly
difficult time trying to figure out how to get a relationship right in Views by trying to get the user
name from the users table using a userid from a field in my custom table. However I managed to
figure out the soution by reading the query generated by Views. Read on to know how to add a relationship
between a custom table and Users table in Views below
We have a Drupal 7 website, which is using an old version of jquery by default.But we need to write a custom module which uses some features only present in latest jquery.
I had a requirement in one of my Drupal site in which I want to import content from an external XML file generated from another website.
The XML generated as a URL say For ex: http://example.com/feed.xml, I want to fetch the XML every time from the above generated URL. Follow the below steps to fetch the XML from URL's:
Hey, are you the admin of your site? Do you want to get the total number of words of your node on double click? Well then, here is an article on how to get the word count of your nodes at your mouse tip in a few simple steps.
A landing page refers to a particular web page that a visitor usually reaches upon clicking a link or an online advertisement. This page usually displays information that is directly related to the keywords that has a user has searched for, or the has the relevant keywords directly on the page. Landing pages are basically conversion tools i.e. the primary objective of a landing page is to turn a visitor into a lead.
In your Drupal website consider that you have created a block using views to display some content.Consider a situation where there is no content in the view.In normal situation if there is no content to be displayed, an empty block will be displayed which will be very odd for a website.So in this article I am mentioning so configuration changes that need to be done so that the block wont be displayed when there is no content.
While working on a WordPress site one of the requirement was that client should get alerts on document downloads. In-order to achieve this we implemented an event tracking functionality for the site. In this article I will be explaining different methods to track an onlick event using jquery and get the updates in Google Analytics.
Recently I ran into a problem of counting the words, sentences and characters in every articles and to display it on the bottom of all the articles pages in Drupal site. So I have checked and found out the way of doing this task.
Debugging is a process of finding and reducing the number of bugs. In the web applications development we used to work mostly on the development site at first and debug the errors then we will go for the live site to just push the modifications which we made in the development site. In such cases there may be a chance of error occurrence in the live site even if we come up from the development site. Then we have to handle the debugging process in the live site at that point of time. In the development site process we can do the debugging process easily, there is no need to worry about the customers since because it is not viewable to the customers. But when it comes to the live site we have to consider about the customers who visit the site.
Drupal 6 will not allow you to create multiple access callbacks for a menu. In hook menu, the access callback will accept only string value, not an array. But I had a requirement in my project to add a custom access callback without removing the existing access callback. My custom access callback should be executed first. After that if some condition satisfies in my custom function the original access callback should get executed.
In one of my drupal projects, I had a requirement to open some search result page in a new tab. I had given '#' as a place holder for the href attribute of the search link that needs to execute a javascript function on click to open the search result page on new tabs. I have added necessary code on the click event of this link to open the search results in new tabs and it was working properly. But when I click on this search link the current tab will go to the top of the page, since the '#' attribute will redirect to the top of the page.
Sometimes we face the White Screen of Death(WSOD) without an error message. White Screen of Death happens due to several reasons. Some of the common WSOD that we face are while making changes in configuration or while running the security updates. If this happens while updating the module, the entire site might face WSOD. WSOD would even stop the bussiness of a site. So this is a major issue from the client /SEO perspective. If you want to fix the WSOD, you need to first identify the error. If you are facing a WSOD, then read on to know more about its causes.
What webmasters can do for making their site visible to intended audience? Identifying effective ways for managing content using stories and pages on a Drupal site can really make your website stand out from others. Here are a few tips for Drupal webmasters who would like to make their website unique, valuable and reliable.
Suppose your Drupal projects handles products which can be shipped from one location to another and you are using Ubercart shipping quote' module to handle payment related to weight and shipping zones. Admin have the permission to add Zones rate and weight for each product, and the registered user's can buy the product. Here I am going to explain some of the test cases to be tested while testing this functionality.
In Drupal creating a custom theme and enabling the same enhance Drupal's core look and feel.
But the enhancement feel could be further brought by theming each views in the Drupal site.
Follow the theming steps to make changes in your Drupal content views.