- "Ask the Expert" or Advice Column
- "Must Have" Modules
- A Challenge
- Books Overview
- Changing Garland - A Practical Example
- Comparison of Links and Web Links modules
- Create Simple Tables
- Creating a "Biographies" page
- Developing a Module on a Windows System
- Generic Table Display
- How to page a custom DB query
- List Users From a Single Role in a Block
- My Modules
- Announcements: Special Notices for Your Site
- Attendance Matrix
- Content Type Template
- FAQ_Ask
- Get Content Type
- Glossary
- Gotcha - Contact Spam Catcher
- Helpers
- Indexpage: summary of node type information
- Longer Node Titles
- Node Type Filter
- Quotes
- RealName: Using Profile fields to set a user's displayed name
- Register_Country
- Site Documentation Module
- Site Notes: Hidden Design or How To notes in Your Database
- Spam Tokens
- Spam Tune
- Taxonomy Browser
- Taxonomy Delegate
- Taxonomy Image: Associate Images with Taxonomy Terms
- Taxonomy List: Displaying Lists of Terms
- SBS Web Site Notes
- Searching for a New Hosting Company
- Taxonomy Tidbits
- Theming a Specific Content Type
Announcements: Special Notices for Your Site
Submitted on Thu, 05/08/2008 - 16:45.
This moduleAn add-on, or extension, to Drupal to provide additional functionality; written in PHP. creates an "announcement" content type and provides both node views and block lists.
This is an adaptation of the sample module writing article from IBM.
An announcement has the following fields:
- Title
- Self-explanatory.
- Publication date
- The first date the announcement will be displayed.
- Exiration date
- The last date the announcement will be displayed.
- Abstract
- An abbreviated description of the announcement. This will be shown in the block.
- Body
- The full text of the announcement.
Installation
Standard moduleAn add-on, or extension, to Drupal to provide additional functionality; written in PHP. installation applies. The moduleAn add-on, or extension, to Drupal to provide additional functionality; written in PHP. does have an uninstall function.
Settings
- Maximum number of block announcements
- The maximum number of announcements that will show in a block.
- Display additional announcement classification
- I have no idea; I haven't tried this yet.
- Default duration of announcement
- When creating a new announcement, the start date will default to today and the ending date will default to today plus this setting's value.
Permissions
- create announcement
- Allows a user to create a new announcment
- edit announcement
- Allows a user to edit any announcment. Note: "edit own" is by default.
Menu Entries / URIs
There is one menu entry for "Announcements." This view of the announcements shows only the abstract and dates for the announcements.
If one appends 'view' to the URI (i.e. http://www.example.com/announcements/view), you will get a full node view.
Blocks
- Announcements: Recent
- Shows recent, active announcements.
- Announcements: In xxx vocabulary
- Shows the terms for the xxx vocabulary, which has been assigned to the 'announcements' content type. There may be more than one vocabulary show, depending on your configuraton. Note: if there are no vocabularies assigned, then this block will not be shown.
Styling and Themes
The moduleAn add-on, or extension, to Drupal to provide additional functionality; written in PHP. comes with a starter set of CSSCascading Style Sheet - a hierarchical means of specifying how to format HTML elements on the page entries. View the code or use Firebug to discover more styling options.
- theme_announcements_compact
- Formats the main, compact view.
- theme_announcements
- Formats the full node view.
- theme_announcements_block_list
- Formats an entry for the "Recent" block.
- theme_announcements_dates
- Formats the dates for the announcement.
- theme_announcements_abstract
- Formats the abstract.



Recent comments
1 week 5 days ago
6 weeks 3 days ago
6 weeks 4 days ago
7 weeks 2 days ago
7 weeks 3 days ago
8 weeks 4 days ago
8 weeks 5 days ago
9 weeks 1 day ago
9 weeks 3 days ago
9 weeks 3 days ago