Subscribe to RSS - Ki Kim's blog

Ki Kim's blog

How to Display One Value from Two Fields in a Drupal View

Submitted by Ki Kim on Mon, 05/14/2012 - 9:00am
Ki Kim's picture

There is a situation where one field of a Drupal View needs to pull its content from two fields (aka cck fields) of a node. In my case, they were default author field and a custom field called contributor. This example uses Drupal 7 and Views 3.

Ki Kim's picture

While it was a PC dominated environment a few years ago at my work place, people have started to switch to Macs when they are allowed to choose their workstation. Now most of my co-workers use Mac as their main machine while their PC is still around as a backup machine, for testing, or for .NET development.

Building Slideshows with Navigation Based on Views

Submitted by Ki Kim on Tue, 01/03/2012 - 9:57am
Ki Kim's picture

Slideshow is a popular feature on the front page of many web sites. Drupal makes it quite easy to build one. Here are the steps to build a Views-based slideshow in Drupal 7.

Saving node's fields without saving the node itself

Submitted by Ki Kim on Mon, 10/24/2011 - 9:00am
Ki Kim's picture

Drupal core function node_save() is used to save nodes and it is frequently used to programmatically alter and save nodes' data, which includes fields (aka CCK fields) as well. If you want to update a field of a node you could do it like this,

A Short Journey from empty(), to Not So Empty

Submitted by Ki Kim on Mon, 08/29/2011 - 9:00am
Ki Kim's picture

I recently reviewed the documented usage for the PHP empty() function in the PHP manual at http://php.net/manual/en/function.empty.php.

Like many PHP programmers, I have learned a great deal from the online manual. I most often use the Function Reference section, which provides a comprehensive explanation of how to use functions and includes nice, practical examples.

Fixing out of memory problem for cron job

Submitted by Ki Kim on Mon, 06/06/2011 - 9:00am
Ki Kim's picture

Drupal is known to be resource heavy system that heavily depends on database storage for content generation. While minimum recommendation for PHP memory limit is 32MB, it is not uncommon to allow as much as 128MB of RAM to PHP in bigger sites.

With tons of modules installed, Drupal cron job can fail due to lack of memory even with 128MB. Quick solution is to increase PHP memory limit. There are several ways to do it and they are well explained at http://drupal.org/node/207036.

Steps to convert file system in Drupal 6

Submitted by Ki Kim on Mon, 03/28/2011 - 4:52pm
Ki Kim's picture

When you install Drupal 6, you are asked if you want Public or Private download method. In most cases, the Public method is preferable. However, you might select the Private method if there will be uploaded files that we don't want to be accessed by users without proper permission or search engines even if the search engine knows the physical URL of the files.

Update Drupal using Drush with svn support

Submitted by Ki Kim on Sun, 01/16/2011 - 8:48pm
Ki Kim's picture

Drush (Drupal Shell) is "a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt."

The best LAMP stack for Drupal development

Submitted by Ki Kim on Wed, 11/24/2010 - 2:14pm
Ki Kim's picture

Drupal attracts both groups of people, web developers and site administrators, as a framework and as a content management system respectively. As Drupal becomes more popular, potential users want to give it a try, which can pose an obstacle to less technical users.

Custom Access Control for Drupal Views

Submitted by Ki Kim on Mon, 09/20/2010 - 11:00am
Ki Kim's picture

Views is one of the most popular contrib modules for Drupal. The module is essential to building a Drupal site, and is installed on nearly every Drupal website.

For a recent project, I had to build a View to show a list of unpublished content for a logged in user on the user's profile. In this post, I'll explain how to build this View.

Pages