Image Module

The Image module is the oldest image-related modules in Drupal. It has been an integral part of many I can't believe it's Drupal Web sites, including the online arts community at http www.terminus1525.ca. This module allows users to upload images to Drupal. Images of predefined sizes are automatically created and can be integrated into the site. Specifically, images can be posted individually, included in stories, and grouped into galleries using taxonomy terms. To include a single image per...

Task Based Navigation

Regardless of the type of Web site you have created, there will be some tasks that you need to perform on a regular basis. These tasks may range from creating a simple blog entry to undertaking a more complex series of tasks, such as editing, reviewing, and publishing content submitted by multiple Web site authors. Drupal provides a navigation block for users who are logged into the Web site that contains links to Create Content, Administer the site, and Logout from the site. This block...

Installing Drupaland Common Hurdles to Its Installation

Once your Web server is working, installing Drupal is usually a fairly easy task. You may encounter some small hurdles when setting up the CMS, but these can be overcome quickly. As we walk through the installation process, you will get to know some of them. 1. Download Drupal. Go to http drupal.org and select Drupal 6 in the download section. Unpack it and copy the contents of the Zip file to your document root (or wherever you want Drupal to be located). When copying the package, make...

Task Based Organization

From the very beginning of your Drupal installation, you will be working with task-based organization. Your Web site might include tasks such as adding new content, moderating comments, searching or filtering the content, and viewing recently updated content. Figure 1.11 shows the task-based menu that Drupal provides to help organize these actions. You may also have a set of tasks that are available to different roles within your team of authenticated users. Task-based organization is...

Displaying Content

When designing your Web site's page layout, you must consider how content will be displayed on each page. The decisions you make at this point may affect the way you build your content types later on. Adding more fields to your content type allows you to have greater control over how the information is displayed. For example, the front page of your Web site may have a simple list of titles, each of which leads to a full story alternatively, you may have a more complicated list, where the link...

Parent Items and Weight

In the administration system, the terms parent item and weight often remain hidden, because Drupal uses a drag-and-drop interface to rearrange items. Nevertheless, there are some screens where you will need to understand their meanings. Both taxonomy and menus may rely on hierarchies for their organization. When items are organized within a hierarchical sorting system, Drupal uses the term parent item to define which taxonomy term or menu item is closer to the top of the family tree. When you...

Horizscrollhtml

The horizscroll.html file contains the HTML code that allows the JavaScript code from horizscroll.js to attach its behavior. It also contains all variables for the data source. lt xml version 1.0 gt lt DOCTYPE html PUBLIC - W3C DTD XHTML 1.0 Strict EN lt html xml lang Men lang en gt lt head gt lt meta http-equiv Content-Type content text html charset utf-8 gt lt link rel stylesheet href horizscroll.css type text css gt lt script src jquery.js lt script src drupal.js lt script src horizscroll.js...

Custom Error

One of the disadvantages of using the built-in Drupal error-handling techniques is that the error pages are actual nodes in the database. As a consequence, they may show up in search results pages. An alternative to this approach to error handling is to use the Custom Error module. This module can be downloaded from the project page at http drupal.org project customerror. Instructions explaining how to install modules can be found in Appendix A. Once the Custom Error module is installed, you...

Calling the Server with Xml HttpRequest

You almost certainly have heard of AJAX, a term coined in 2005 for the process of loading data within the lifetime of a Web site. AJAX makes it possible to develop Web sites that change their content dynamically without needing to preload all possible content or resorting to reloading the page. AJAX, which stands for Asynchronous JavaScript and XML, is based on the XmlHttpRequest technology introduced by Microsoft in Internet Explorer. XmlHttpRequest was originally created to facilitate the...

Disqus

Disqus pronounced discuss is a service and tool for facilitating web comments and discussions. The Disqus comment system can be plugged into any Web site, blog, or application. It makes commenting easier and more interactive, while connecting Web sites and commenters to create a thriving discussion community. Disqus makes it easier for people to comment and track their contributions on a single profile, which they can display as a comment blog. After all, there really is no difference between a...

Structure of the preprocessblock Function

The function preprocess_block receives a copy of all ofvariables prepared by Drupal for blocks vars . This list includes everything its ID, the module that created the block, the region where the block should appear, and the title of the block . In addition to blocks, special preprocess functions are available for pages, blocks, and nodes. To obtain a full list of all variables created by this block, issue the following PHP command inside the preprocess function to print the variables to the...

Applying a Separate Administrative Theme

Content managers and Web site administrators may be accustomed to having a visually distinct management area within the Web site that looks very different to the public Web site. By default, Drupal uses the same theme for both the administrative and public versions of a Web site. This behavior is unlike that of other Web publishing platforms. For example, WordPress uses an administrative dashboard with a distinct view site link near the top of the page. In Joomla , the administrative area is...