Creating a view that lists nodes tagged by a taxonomy term

Following is what we will be creating. A view that will create a page with a list of nodes (titles + teasers) and a block (with node titles only) of all nodes tagged by a taxonomy term.

Assumption: - You have multiple nodes tagged with term "PHP" - The nodes are of type Article

Go to Structure > Views > Add a new view and fill in the form as follows:

View name: PHP Show Content of type Article tagged with PHP sorted by Newest first check Create a page check Create a block Save & Exit

Then go to Structure > Blocks to enable the block.

Nginx webroot

Following are default locations of nginx webroot with standard installations:

  • Ubuntu 12.04: /usr/share/nginx/www
  • Ubuntu 14.04: /usr/share/nginx/html
  • Mac OS (brew): /usr/local/var/www

On Ubuntu 14.04, the webroot is defined in


You should something like:

Installing Nginx on Ubuntu

Nginx is a powerful web server which is rapidly taking market share from Apache. Here you will see how easy it is to install and use Nginx.

sudo apt-get update
sudo apt-get install nginx

Installation complete! Type the IP of your web host in the browser to test it. If you don't know your IP, run the following command

ip addr show | grep inet

It will list several IPs, use the one attached to eth0 or eth1.

Starting, Stopping, Restarting Nginx

Provisioning vagrant

This article shows you how to provision your vagrant. We will start with a very simple dumb box and add features incrementally.


You need to have virtualbox and vagrant installed on your system before following this article.

Basic box

Lets begin by creating the most basic vagrant box.

Type casting in PHP

PHP does not support explicit type definition in variable declaration. For example, you CANNOT declare a variable as follows:

int $count = 10;

In PHP, a variable's type is determined by the context in which the variable is used.

What is Moodle

A Learning Management System (LMS) is a software application which permits administration, documentation, tracking, development, reporting, of online e-learning content. LMS needs to provide enormous flexibility and fine-grained level of control for administrator, trainers, course developers, and students alike. The needs for each course and each institute are different and LMS much fulfill all their requirements. The best-known LMS are blackboard (formerly Web-CT) and Moodle. Blackboard is a licensed software while Moodle is open source.