Drupal Articles » Creating a CCK and Views powered Drupal site
The goal of this guide is to take you step by step through the full process of using Drupal's CCK and Views modules (as well as a number of other supporting modules) to create customized content types (e.g. news posts, articles, etc), as well as "listing" pages and blocks to display teasers of your content, and then theming everything to look exactly as you intend. This is a "mega guide" that is intended to take you step by step from a beginner level through every step to learn the majority of skills, concepts, and modules you need to make a relatively advanced Drupal site. It is not "all inclusive" by any means, but should be a valuable learning tool.
Please do not be alarmed at the length of this guide -- its length is only due to very thoroughly described steps to make this guide as beginner-friendly as possible. Each step is numbered so you can more easily keep track of your place in the guide. Although I have over 4 years of experience with Drupal, I try to put myself in beginner's shoes and not skim over details or assume that you already know things about the code or how Drupal works.
For the purpose of this lesson, a new Content Type called "Article" will be created, and a number of custom fields will be added to it. You can, however, apply this lesson to any other Content Type you wish to create or have already created. For full control, specific fields will be set up ahead of time for the Content Type using CCK, so that certain specific fields will be displayed in the teaser view but not on the full page view of the Article content, and certain fields will show only on the full Article pages but not in the teaser views of the content.
After completing this lesson, you will have built up skills working with CCK, Views, theming both Nodes (individual pieces of content) as well as Views (custom listings pages and blocks of your content), and knowledge of Pathauto and Custom Breadcrumbs. You will also gain experience working with images in Drupal using Imagefield and Imagecache (in this lesson you will learn to add images to your CCK types, and control exactly how and where those images show up, such as adding a thumbnail image in the teaser with the full size image on the article's full page).
This guide is still in the process of being written. Though not yet complete, it is still a very valuable learning resource. Currently support for Images is being added to the guide.
Tips on using this guide
- Buttons, links, menus, etc which you are to click on are written within "Quotes".
- The names of options/settings, when referred to, are shown in Italics.
- Options you are to select or text/code you are to enter into setting/configuration fields or your template files are
highlighted. When you see highlighted text, you should copy/paste it into the specified settings field or template file on your site.
- When the guide calls for you to navigate to a certain administration page of your Drupal site, the path is shown in this format: Administer > Site building > Blocks and the URL is also provided (admin/build/block).
- Occasionally, when there are alternative techniques or other guidance, a Note: will be included.
- This guide has currently been written and tested for Drupal 6. Many of the concepts apply to the older Drupal 5 versions of the modules used in the guide, but there are various differences (especially with Views 2).
- The examples in the guide use the Garland theme, since all Drupal users have it. You can apply the steps in this guide to any theme you wish though.