Drupal 7

  • By prince.kr on January 20, 2015 - 15:50
  • Drupal
0

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.

Continue reading

While working on a drupal site I came across this issue that if my site is having many feeds and what happens if many users try to access this, which can possibly make our site slow. One of the possible solution is that we could create another domain for our feeds so that users can access the feeds from that domain. Also you can refer the article How to create a custom feed on drupal 7 site using views to know how to create feeds using views

Continue reading

There are situations where we need OG 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 OG membership entity ID. Also when come across og_membership_load() function to get the entire OG membership object, which will also require OG membership entity ID as parameter. So in these situations how can we get OG membership entity ID. See the following function I have written to retrieve the OG membership entity Id.

Continue reading

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.

Continue reading
  • By sarath.mohan on January 16, 2015 - 17:17
  • Drupal
0

In order to add a new jQuery or multiple javaScript/CSS to the Drupal site, it is better to use hook_library rather than using drupal_add_css/drupal_add_js multiple times. It is helpful if we are using the javaScript/CSS in multiple pages.

Continue reading

We had an issue pointed out by one of our Drupal client that traffic from specific page to be redirected to another URL. In Drupal redirecting trafic from specific page on specific domains can be handle either by including a Drupal hook_init function or setting the .htaccess. Function hook_init runs at beginning of page request but it loads all Drupal modules and database for every page which results in performance issues. On the other hand .htaccess files are read on every page request and the effect to the changes in the .htaccess files is quick.

Continue reading

Organic Group Module in Drupal allows to create and manage different groups. While creating a content, we can add that content to a group. The og_group() function allows to add a content to a group.

Continue reading
  • By prince.kr on January 11, 2015 - 09:59
  • Apache
0

I had met a peculiar Apache 2 error on Drupal upgrading. I can see my site loaded but can't access any of the sub-URL's in the site. When I provide the Url:www.test.com/admin/node, its shows "Requested URL /admin/node not found on this server". But if the url is provided like 'test.com/?q=node/', it allows to get the link.

Continue reading
  • By jacob.john on January 9, 2015 - 11:21
  • Drupal
0

Consider the situation that you are using the fancy box module in your drupal 7 site and you have to display the images when clicked on in a pop-up.You just need to follow the steps mentioned below which can guide you through the various procedures.

Continue reading

A bug was noticed in the Drupal site that permission for creating node not working on upgrading the module. We can create the node or view it if we are admin users but the node is not accessible to authenticated users or cant be viewed by anonymous users.

I tried the fixing by looking at the permissions of the nodes to the specific users.It all looked fine and created a custom permission for the same.The issue still stayed.

Continue reading

In Drupal we can create a time based subscription for a user for a given role. The user will be assigned to that role for a certain limit of time, after that the role will expire. The subscription will be based on Ubercart product. When a user purchases the product, account of user is upgraded to a specified role for a given time limit. The user can also renew for the role by purchasing the product after end of subscription.

Continue reading
  • By prince.kr on January 6, 2015 - 17:32
  • Drupal
0

Syncing means importing all files, permissions and data's from master to the development site, so that we have a two copies of live sites to test our new developments. In Drupal, its very easy to create versions of websites using this syncing process. Once the site is live to Production, the above process helps to fetch the sites data in the current scenario and to update few more features in the live site.
I had a task to sync live database to development site's and came across some issues while syncing live database with the dev database.

Continue reading

Drupal provides creating an image style in different ways through configuration. Adding a watermark to the image to provide its originality is a must thing needed by the clients. While running in to this we have found out a solution to add a watermark to the image styles.

Continue reading
  • By uttam.kotekar on January 2, 2015 - 18:08
  • Drupal
0

Drupal 7 has a contributed module "Nodequeue" which allows users to collect nodes in an arbitrarily ordered list. It provides a simple drag-and-drop interface to manually order any queue. If you want to create a node to the nodequeue programmatically then you need to read this article. For creating you need to have two things: node id $nid and the queue name queue_name. Here how it can done, we firstly load the nodequeue by name and then add the node to the queue using function nodequeue_subqueue_add. Below code snippets adds a node to the queue.

Continue reading
  • By fathimath.sajila on January 2, 2015 - 17:57
  • Drupal
0

Commerce Giftwrap module provides a very quick and easy way to offer a gift wrapping option to your Drupal Commerce checkout. This module adds a new checkout pane with configuration settings to allow users to select a gift wrapping option to add to their order along with a message to the recipient. People often buy products hoping they can gift it to a certain address. If they can get it gift wrapped, it would be an added advantage as they could deliver it directly to the person instead of buying it and then gift wrapping it and then delivering it!

Continue reading

Webform has inbuilt functionality to provide reports for the data submitted. The datas submitted to the webform can be setted to a limit or can be unlimited with respect to the feedbacks needed to be collected.To implement custom reports page using webform views, we need to get the web-form submissions data value by installing the following modules

Continue reading

Every website has POST and GET feature involved for continuous client and server communication. We would have got many unauthorized requests from the site to and fro which are categorized as spams. Spambots usually create fake accounts and send spam using them, although in many cases it would be obvious that a spambot is sending it.

Continue reading
  • By aby.va on January 1, 2015 - 17:53
  • Drupal
0

Drupal has a lot of contributed modules. Today, Facebook is one of the most popular social networking sites and almost all the websites are connected with it. So, how can you connect your Drupal site with Facebook?

In Drupal 7 there is a contributed module called Facebook Events. This Facebook_Events module allows to show RSVP of Facebook event in Drupal node. This is very useful module for Drupal sites Facebook connection and also FBConnect module which can also be preffered as a linkage to Facebook events.

Continue reading

Recently, we had a requirement to change the article's URL alias to a custom format. For creating custom URL paths using taxonomy terms, all you need to do is to configure the URL alias pattern for Article paths. The solution seems simple, however we couldn't build the required pattern as the available tokens were not just enough. After some trial and error we came up with a solution. We have created custom tokens and that worked like a charm.

Continue reading
  • By fazeela.ma on December 30, 2014 - 18:17
  • Drupal
0

Drupal Commerce is a software used for integrating commerce,
content and community to create engaging web experiences that bring
e-retailers more traffic for more results. With Drupal Commerce, online
retailers have a simple yet powerful platform and flexibility to
integrate a rich commerce experience anywhere within their environment.

Continue reading