Drupal Views

Entity Reference Display in Views
| 3 min read
In Drupal, the default behaviour of entity reference fields allows us to select unpublished content if the content creator has permission to view unpublished content, which can be useful in specific scenarios where we need to establish relationships even with unpublished content. However, in many cases, we want to refer only to published content. The problem arises when we add references during content creation without verifying whether the referenced items are published. This can lead to confusion later when we wonder why the referenced contents are not visible when viewing the content. Here's a step-by-step guide on how to use a Drupal view to filter the values appearing in an entity reference field
Zyxware default image3
| 2 min read
E-commerce businesses depend on electronic transactions to receive payment from customers for products and services. The massive volume of electronic transactions has lead to a rise in fraudulent activities. As per the data released by Global Fraud Attack Index TM, the number of attacks by fraudsters increased by 163 percent in 2015, rapidly growing two and a half times in a three-quartered period. Credit card fraud impacts all those involved in it: the consumer whose credit card information is stolen, the merchant from whom the product is purchased, the bank that enables the transaction and the issuer who is obliged to protect its cardholders. In this dynamic e-commerce landscape, as merchants constantly sell their products through multiple channels and provide different payment methods to cater to local customer needs, keeping abreast of fraud risks is a challenging task. Riskified provides a flexible fraud prevention solution for enterprises.
Zyxware default image4
| 2 min read
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.
Zyxware default image2
| 3 min read
SimpleAds module allows advertisement in Drupal websites. I had a requirement in one of my Drupal sites to add advertisements in the site contents area. I came across a Drupal module- SImpleAds which helped me to solve the fix and the below the details on the configurations to done to use SimpleAds module
Zyxware default image4
| 2 min read
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.
Zyxware default image1
| 4 min read
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
Zyxware default image4
| 3 min read
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.
Zyxware default image3
| 2 min read
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.
Zyxware default image4
| 4 min read
Here is a document which describes how the contents in a View can be displayed in a table format as well as it can be dragged and dropped from one row to an another row without using any additional jQuery functions. We have done this in Drupal 7 and this can be achieved using a module named 'DragabbleViews'. You can download it from this link: http://drupal.org/project/draggableviews. This module requires the 'Views' module to be installed already in your system.
Zyxware default image1
| 3 min read
Drupal is a stable,reliable, and robust Content Management System. Views is a Drupal module, which provides a flexible method for site designers to control how lists and tables of content, or any other type of content has to be presented. The views module was a contributed one and was later adapted to the core from Drupal 8. Drupal views are being used by almost 75% of the Drupal based sites to present the elements in a page. Most of the websites still use the Views module versions such as 6.x. Drupal Views versions, 6.x-2.9, 6.x-2.10 and 6.x-2.11, in Drupal 6 are vulnerable.