Value

To review the full article and publish or delete it, visit node_url. It's important to note that certain special placeholders are being used in our messages. Whenever the action is triggered, user-name, title, and node_url are all automatically replaced with information from the node that was submitted. These are similar to the tokens used in Token module in the previous chapter. You can see the full list of available placeholders in the help text under the Message text area. 3. Click the Save...

Spotlight Flag Module

The Flag module formerly known as Views Bookmark is an incredibly flexible module that allows you to create relationships between users and content on your site. After creating a flag, an item can be marked with the flag a few different ways, including links displayed below content, as shown in Figure 9-10, or checkboxes displayed on the edit form, as shown in Figure 9-11. Morbi nor erat rion ipsum pbaretra tempus Donee orci, Proin in ante, Pellentesque sit amet pur us. Cras egestas diam sed...

Add the Date Field

With all our required modules enabled and set up, we can now customize the Event content type we created earlier by adding dates. Note that as we do this, we will only add a single CCK field to handle both the event's start and end times 1. Go to AdministersContent managements-Content types admin content types and click the manage fields link for the Event content type admin content node-type event fields . Complete the New field form with the values in Table 9-6. Table 9-6. Settings for adding...

Case Study Yrf

Bob and Sarah are coworkers and food lovers who've both built up impressive kitchens full of gadgets, pots and pans, and other cooking tools. Supporting a culinary habit can be expensive, though, and they usually turn to fellow foodies for advice before purchasing new gear. They've decided to set up Super Duper Chefs, a website where they and their friends can write recommendations about the cooking equipment they use, share tips, and brag about their latest culinary achievements. They'd like...

Managing Site Navigation

Great We now have a couple pages on the site and our navigation menu is starting to come together. However, there's something a little funny going on our menu items in the top righthand corner are displayed in alphabetical order, which puts About Us before Home. It would make a lot more sense for Home to come first, so let's fix that by reordering the items listed in the menu. 1. Go to Administer Site buildings-Menus admin build menu and click Primary links 2. Using the handles on the left...

Overriding a Template Variable

Drupal gives us lots of nice variables to use, but they don't always look the way we prefer. A common item that many people wish they could change is the Submitted by line, which prints out the author name and date that a node was created. You can turn this display off and on in the theme configuration screen at Administers Site buildings-Themes admin build themes , under the Configure tab admin build themes settings , but you can't change what information is actually printed out when the...

Spotlight Core Internationalization Features

Drupal core comes with two modules to handle languages Locale and Content translation. Locale works with the user interface text and gives you a nice set of tools that let you import existing translations, create or edit your own, or export your site's translations for use on other sites. Content translation lets you create multiple versions of the same content in different languages and associates the translated versions together. Another really nice feature in Drupal 6 core is support for...

Configuring Product Attributes

For the Sweet Tees online store, customers need to be able to select the T-shirt size that they wish to order, as well as the colors of their shirts and stickers. To implement this, we will make use of Ubercart's product attributes feature. Figure 10-17 shows an example of the Size attribute. Home Administer - Store administration - Attributes Name Default cost Default price Default weight Order Operations Products o Attributes o Reports Figure 10-17. The Size attribute and its options 1. Go to...

Event Management

Managing online calendars and event registration can present a huge challenge. Without a dynamic system, the task is nearly impossible. Generating the HTML required to display a calendar and all the various presentation options day, week, month views, and so on is unreasonable and worse, because the events are time-sensitive, remembering to update next or upcoming event lists can be onerous. Nothing looks worse than having last week's meeting listed first on your Upcoming Events page. Even with...

Using a Preset

After setting up presets in the ImageCache administration area, you need to tell Drupal where these presets should be used. ImageField and FileField provide options to display the images full-size or in a generic file list. After configuring ImageCache presets, additional options for displaying images become available. The typical display of images is configured using CCK formatters, as shown in Figure 7-15. For every ImageCache preset setup on your site, ImageCache adds four new formatters...

Wiki Functionality

There is a long list of modules to help us satisfy the requirements for this site. When looking for wiki solutions, the obvious place to start looking would be wiki modules. There are three modules with wiki in their names, Wiki http drupal.org project wiki , Liquid Wiki http drupal.org project liquid , and Wikitools http drupal.org project wikitools . Wiki was developed as a means to centralize the various wiki solutions in Drupal in a single package, but has been abandoned since 2006 and...

Attendance Tracking

The Signup module http drupal.org project signup is designed specifically for the purpose of tracking event attendance, and has some nice features such as the ability to email reminders to attendees prior to an event. However, this module was unavailable for Drupal 6 and was undergoing development at the time of this writing. Instead, we will use this opportunity to highlight a helpful general-purpose module called Flag http drupal.org project flag . Flag known as Views Bookmark in Drupal 5...

Assign Triggers

Now that we have the actions set up with the information that we want, the next step is to use the Trigger module to associate a particular event with the actions we've created. 1. Go to AdministersSite buildingsModules admin build modules and enable the following module Core optional package Trigger 2. Go to AdministersSite buildingsTriggers admin build trigger node . You will be on the Content tab of the Trigger administration screen. 3. Under Trigger After saving a new post, select the...

Aurora Book Club

Figure 9-8. Completed event calendar, with iCal link the Date field s section, click on the Date Date link and under Date field s , uncheck Node Updated date and check Content Time field_time value instead. Then click Update. 5. For the Fields section, add the Content Time field_time_value field, then make the changes noted in Table 9-14 and click Update. This selection will show our event's date, rather than the node's last updated date, and will remove the word Title from the event name that...