Unset title links in views

Follow these steps if you want to remove link from title field in views -
1. Add a boolean field on content type where you can set the values as 0|No, 1|yes (this boolean field is to determine if you want to display the title link or not)
2. In the views, add "content:title" field and check "Exclude from display", remember not to check "link this field to the original content" field
3. Add "content:nid" field and check "Exclude from display"

Tags: 

Topics: 

Display blog author detail in block

Most of the time its not blog author who adds blog inside the CMS and if you want to display blog author detail in the block who is other than content author. This can be done easily using views.

I am using example so its easy to explain. I have two content type - blog and team member.
Blog content type has title, date, topic (taxonomy term reference), authored by (entity reference to team member content type), body, and URL.
Team member content type has title, member title (position title in the organization), member image, body, and URL.

Tags: 

Topics: 

Node count for taxonomy terms in Views

To display number of count for taxonomy terms in views block (Drupal 7), you can do the following -

1. Create a views block
2. Under fields, add taxonomy term: Name
4. Under relationships, add taxonomy terms: content with term
5. Under contextual filter, add taxonomy term: name, choose "Display a summary", "Display record count with link".

You will have views block which will display taxonomy terms with number count for example -

cows (2)
dog (3)
cats (7)

Tags: 

Topics: 

Welcome

So finally my site is done in Drupal. I had to go through the steps of making some basic configuration in Apache which was not bad. The only thing to be aware of if anyone planning to use CentOS 5 as it comes with PHP 5.1.* so to upgrade PHP to 5.3.* you dont need to install any third party package as per Red Hat release notes there's now PHP 5.3.* packages included in Centos 5. So just remove PHP 5.1.* version and install PHP 5.3.* .

yum remove php-*

Install PHP 5.3

yum install php53-cli
yum install php53-common and few more............

Tags: 

Subscribe to Kalpana Goel RSS