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.
Drupal Technical
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.
In Drupal themes, the Typography styles are important. We know that there are many classes and different tags are generating while making a Drupal theme. And it will display with the default Drupal CSS styles. Sometimes it wont be matching with our design. So its necessery to make a CSS Typography for those tags/classes.
Here am explaing to override the the default Drupal styles with the Typography styles.
This article will be explaining how to add a scroll bar for a Drupal block.There are certain circumstances, where we need to add scroll bars with a block. If you come across this situation please go through the full article. I have faced a situation to add a scroll bar inside a Drupal block for displaying an article title along with content in a trimmed format. Drupal block already has options to display a number of items inside the block. But if we display all in a single block it will be a big block and is it was not our requirement. If we want to display a block with a particular height you can use the below ideas.
There are situations where we need organic groups membership entity ID. Some of situations are : we use the function og_membership_delete() when we want to remove programmatically a user or node or any group content from our group, which will require parameter that is organic groups membership entity ID. Also when come across og_membership_load() function to get the entire organic groups membership object, which will also require OG membership entity ID as parameter. So in these situations how can we get organic groups membership object membership entity ID. See the following function I have written to retrieve the organic groups membership object membership entity Id.
Have you ever felt the need to change the sorting order of a View?. The most common method to change the sorting order would be to edit the corresponding View template file. Now there is a more elegant solution for doing that instead of editing a view template file. Read on to know how to use Drupal hook_views_query_alter to change views sorting.
I had a requirement to tag a friends/fans page on the photo uploaded in user wall on Facebook from a Drupal site. I have created a custom module on that create a form to uplaod the image. On page submit, I post the image on facebook user wall and tag the facebook fan's page with the same. If we need to work with facebook, we need PHP SDK. Facebook SDK allows developers to access the Facebook api.
Suppose you have a Drupal website in which you can post comment. The users of the site are admin and registered users. Registered user have the permission to post comment in Facebook wall. And this comment will display in the Facebook wall of both admin and the user. Then the some of the case to be considered are as follows.
Suppose your drupal projects contains products to sell. And you can use a coupon code while purchasing some products. For using coupon code in your Drupal site, Ubercart Coupon code module should be installed. Please check the below cases which contains the test cases of checking coupon code validation functionality in Drupal website.
Suppose you have a Drupal website which supports multilingual sites with translated content and the user has the permission to choose the language. On selecting the language all the contents should be converted to the selected language. This article sheds light on how the testing of this feature comes to be. Read on to know how to test Drupal site with translatable content.