Submitted by anto on Sat, 05/25/2024 - 07:40
This guide will walk you through creating a "Related Content" block on the node view page of a content type in Drupal. The block will list other nodes of the same content type that share a common reference.
Definition:
To create a "Related Content" block using Views in Drupal 8/9/10/11, to be shown on the node view page of one item (node/entity) of content type A,
that lists other items (nodes/entities) of the same content type A which all share the same content reference to some other particular node/entity, as that on the initial item under consideration.
Submitted by admin on Mon, 10/05/2015 - 06:04
This is how I normally set up my local Drupal development machines after a fresh Ubuntu 14.04 LTS (desktop/MATE edition) install.
1. Install required packages
From Terminal, execute the following command to update the repository information and to get the system up-to-date:
sudo apt-get update
sudo apt-get upgrade
Next, install some basic necessities:
Submitted by admin on Thu, 12/26/2013 - 20:36
With SSH enabled, Drush is one of the best command-line tools that a Drupal developer/admin can have.
If you havent heard of Drush, checkout these pages to know more about it, and about how it can help make your life much saner:
https://github.com/drush-ops/drush#description
http://drush.ws/about
Here is how you can install Drush on your cPanel/WHM shared hosting account:
Submitted by anto on Thu, 07/18/2013 - 06:30
Setting up a LAMP (Apache, MySQL, PHP) development environment on Ubuntu 11.04 (Natty) / 11.10 (Oneiric) for Drupal/Wordpress development
Package Installation
From Terminal, execute the following command to install the required packages:
sudo apt-get install apache2 mysql-server mysql-client php5 libapache2-mod-php5 php5-gd php5-mysql php5-cli php5-curl kcachegrind php5-ffmpeg php5-mcrypt php5-imagick php5-xdebug phpmyadmin
Additional Configuration
1. To fix the Fully Qualified Domain Name issue for Apache
Submitted by anto on Wed, 05/01/2013 - 20:18
There are often times when you need to download the development snapshot / dev version of a Drupal module/theme/core for a specific date. One common case is when you want to compare the existing version of the module code on your site with the drupal.org version of the same to check for code hacks, as you prepare to update / upgrade the Drupal module.
Here is a method to get that particular date's development snapshot:
Submitted by anto on Wed, 01/02/2013 - 07:07
The Workflow module in Drupal, as part of its Rules module integration, allows you various rules based actions, of which one commonly used one is the action to change the workflow state from state to another. But that one doesn't have an option to set the comment for that state change, which can be quite useful when you see the Workflow History of a node.
I have created a patch for the latest dev version (7.x-1.0+20-dev) of the Workflow module to help you with that:
Submitted by anto on Thu, 11/08/2012 - 23:35
My first Drupal core patch, that corrects a repeating "have to" in one of the function comments in system.api.php, has gone live in today's Drupal 7 release (version 7.17).
Here's the Issue Post on Drupal.org:
http://drupal.org/node/1802844
:-)
Submitted by anto on Sat, 07/28/2012 - 10:02
Drupal 7 provides a feature that allows you to install a new module via the Drupal interface itself, without entering your hosting server's cPanel/alternative File Manager to upload files.
That works like a charm for most hosting servers and makes installing modules/themes a breeze on Drupal.
For some others, trying to install modules that way (from admin/modules/install) might just bring up something that looks like the following:
Exception: Invalid checksum for file ... calculated, 0 expected in Archive_Tar->_error() (line 635 of .../my-site.com/modules/system/system.tar.inc).
Here's how to fix this:
Submitted by anto on Sun, 11/06/2011 - 15:31
Setting up a LAMP (Apache, MySQL, PHP) development environment on Ubuntu 11.04 (Natty) / 11.10 (Oneiric) for Drupal/Wordpress development
Package Installation
From Terminal, execute the following command to install the required packages:
sudo apt-get install apache2 mysql-server mysql-admin mysql-query-browser mysql-client mysql-navigator php5 libapache2-mod-php5 php5-gd php5-mysql php5-cli php5-curl kcachegrind php5-ffmpeg php5-mcrypt php5-imagick php5-xdebug phpmyadmin
Additional Configuration
1. To fix the Fully Qualified Domain Name issue for Apache