Drupal Blog

Views: Display all nodes that have sibling terms (i.e. terms under the same parent) .

While working on an extra requirement for metalera.gr, we needed to do the following:

When viewing node/xxx, we would like to display all nodes that have terms that belong to the same parent as the one we currently visit. Let's say for example, that we have the following parent:

Colors

--red

--blue

--green

Node/xxx has the term green assigned. We need our view to display all nodes that have red or blue as well. 

To achieve that, we first create a new view, then:  

blog: 

Views: How to exclude current node from output

In Drupal 6 there is a very easy way to exclude the current node from the views output. 

How to create divs with rounded corners, using only a lightweight circle graphic and a combination of xHTML/CSS

* Create a square image depicting a circle, using as a side double the radius of the desired round corners' width(You can do that with any image editor, i.e. mspaint). We 'll use 16px radius for our corners in our example, thus we'll be needing a square image 32x32 pixels depicting a circle(with a radius of 16px obviously), with the same border/backround color combination, as the divs we'll inclose.
CSS Code:

blog: 

How to install APC & Uploadprogress on Centos 5

First things first, we need the pecl command in order to download and install APC from the repositories.

Let's run the following command in our terminal:

yum install php-pear

Then, we are making availlable a required package for the phpize command:

yum install php-devel

The followng package will allow apxs command:

yum install httpd-devel

Once we have all the above pakages installed, we are ready to install apc by running the pecl command:

pecl install apc

Configure: error: Please reinstall the libcurl distribution

While trying to setup nginx web server, I received the following error on compilation of php from source: Configure: error: Please reinstall the libcurl distribution

As it turns out, curl-devel was not installed.

So after installing that, the problem was fixed.

For CentOS:

yum -y install curl-devel

Note:
More might be missing - if so try installing:

yum install freetype-devel libpng-devel libjpeg-devel libpng libjpeg t1lib  libc-client-devel  libmcrypt-devel gmp-devel mysql-devel 

Also check:

Recent Comments

Forward by Dries Buytaert, Founder and Project Lead, Drupal; CTO Acquia.

Order now from:

Managing Expectations Podcast with DrupalEasy

Author Interview http://tinyurl.com/8a8nxno

We provide the most Shiny Drupal Bits & Pixels

Since Drupal 4.x

© 2014 Konordo Limited
Drupal Services provider.
All rights reserved.

Reg Nr. 12301661F
VAT Nr. CY10301661D

M. Director: Konstantin Ordoulidis

 

Get in touch

  • Omirou 10, 3095, Limassol, Cyprus
  • +4917698807355
  • info [at] konordo [dot] com

Submit
randomness