Newsletters and Calendars

In most cases, you should also select the Node: published or admin filter to prevent unauthorized access to private information.

10. Click the Add button and set the allowable types to Event CCK.

11. The next change we will need to make is to modify the fields by selecting Node: Updated date.

12. Click Remove to remove this field from the view.

13. Click the + next to the Fields label to add a new field.

14. Select Content: Event Time for the new field to be added, as shown in the following screenshot:

Defaults: Add fields


I Content

□ Content: Content Taxonomy Fields: Served For (fleldservedfor)

Content Taxonomy Fields - Appears in: Menu Item

□ Content: Datetlme: Evert Time (fleldeverttiine)

□ atetime - Appears in Event

□ Content: Decimal: Price (feld_prlce) □edmal- Appears in: Menu Item

0 Content: Event Time (field_event_time_cck value)

□ atetime - Appears in Event CCK

0 Content: Event Time (field_event_tlme_cckvalue2)


15. Click Add to save the changes. You will now need to configure the display of the field.

Defaults: Configure field "Content: Event Time (fieldeventtimecck value)"


□ Exclude from display

Cher* this box to not display this field, but still load it in the view. Use this option to not show a grouping field in eadi record, or when doing advancedthemlng.

□ Link this field to Its rode Label:

O None

® Widget label (Evert Time) O Custom

In most cases, including this one, the defaults are acceptable. So we will just click Update to continue. You will also need to update the settings for the end time (value 2), as described above.

_Chapter 6

16. The final change we need to make to the view is in the Arguments. Select the Date:Date link in the Arguments section.

17. Drupal will display a list of parameters that you can use to customize the arguments.

Date field(s):

□ Content: Datetime: Event Time (fleldeventtime) 0 Content: Event Time (fleldeventtimecck value) 0 Content: Event Time (fekJeventtimecck value2)

□ Content: Seasonal Dates (fieldseasonaldate value)

□ Content: Seasonal Dates (fieldseasonaldate value2)

□ Node: Last comment time

□ Node: Updated/commented date

□ Node revision: Created date

□ User Created date

Select one or more date fields toMer witti tills argument._

We will need to change this to use our Content Event time fields, and then click Update to save the changes.

18. Now that all of the required changes have been made, click Save to finish building the View.

19. We can now return to the list of all views by clicking on the List link, and disable the default calendar view by selecting the Disable link for the default calendar view.

20 Now that our view has been completely set up, we can use it to browse our events. The calendar view, which we used as a starting point, provides several methods of displaying the content as shown below:

Calendar page Year view Month view Day view Week view Calendar block Block view

Page v|

Newsletters and Calendars

You may use any of these views, or you can add more views according to your site's needs. If you do not want to use a display type, you can delete it. If you click on the Calendar Page display type and review the Page settings, you will see that a Page is provided, which can be accessed using the path http://yoursite.com/calendar. No menu is provided. You can either add a menu link here, or use the Menu Manager if desired. If you open the calendar page, the display appears as follows:

Week Day Table List Send to friend

Week Day Table List Send to friend









09(01(2008 -22:00 Send to friend








I 14











21. The calendar view also provides several block displays that can be activated and added to your site via the Block Manager. These blocks include a Calendar block that is similar to the display provided by the event block, and a Legend block that can be used to allow visitors to understand the information in the calendar more easily.

0 0

Post a comment