I would like to edit some PHP and PHP template files but i dun want to modify those files in the default Garland theme. So i’d better create a Garland Subtheme which inherits those files from the Garland theme as well as i could create my own PHP and PHP template files under the subtheme folder for overriding the default.
You can create you own customized view in Drupal with the help of the Drupal Views module. The Views module not only help you creating your own designed Pages but also the customized Blocks, Feed and Attachments. The following example shows you how to make use of the Views module to create a table view for all the Listed Item content type which i created a few days ago. You can refer to the following posts about for creating new content type.
Recently, i was working on setting up a Ubuntu 8.04 LTS (Handy Heron) server. i found that the PHP installed by apt-get is 5.2.4-2ubuntu5.12 and the PHP GD Library is not up-to-date and caused a warning in the Drupal report. I have to download the latest and stable packages in order to solve the problem.
Luckily, i found a very useful and up-to-date Debian repositories for my Ubuntu server. You could find the latest stable LAMP packages there. It is called Dotdeb. Just complete the following steps then you can connect to the Dotdeb repositories. Continue reading Linux – Get The Latest LAMP Package→
Yesterday, we have talked about how to create and customized a new content type with CCK. As i have mentioned, there are some CCK field modules such as Email and Date. This article will show you how to add a Email Field in the content type.
First, download the Email Field module to extract it to your modules folder. You will find the There is a Email option under the CCK module selection. Continue reading Drupal – Field Modules for CCK→
By default, there are 3 content types bundled with a new Drupal Installation. They are Blog, Page and Story. But the Blog content type is not available until you have enabled the Blog module in Drupal Core. So if you want to create your own content type, what you need is the Content Construction Kit module (CCK).
The CCK module is a very common module in the Drupal community. With CCK, you could add more fields in any content type rather than just having Title and Body in the node. Moreover, there are some field modules which provide a standard and ready-to-use field types such as Link, Email, Date… etc. You could find more information in the references at the end of this post. Continue reading Drupal – Create New Custom Content Type with CCK→
Usually, people got more than one website in the Apache web server and sometimes they want to separate them into different domain names. This can be done by the Apache VirtualHost.
The following example is done in Mac MAMP, i guess the configuration on Linux and Windows should be similar. Let’s start now.
MAMP is Apache, MySQL and PHP runs on Mac. For Mac users, it is very convenient to use the MAMP package such that they don’t need to install the those application one by one. Moreover, MAMP package also bundled with some other useful programs as well as libraries such as phpMyAdmin and the PHP GD library. For more information, you can refer to the MAMP website.
During the installation, you can include the MAMP control panel into you Mac Dashboard. This is quite helpful for you to start and stop the server. you can also pick either PHP4 or PHP5 by switching to the back panel by clicking the i button which is located under the Apache label on the front panel. Continue reading MAMP – Introduction→