Thursday, April 2, 2009

Structure of the .info file

Drupal understands the keys listed below

* name (required)
* description *
* screenshot
* version *
* core (required from Drupal 6.x)
* engine *
* base theme
* regions
* features
* stylesheets
* scripts
* php

Writing .info files

The .info file gives Drupal a little more information about your module. This file is used primarily by the modules administration system for display purposes as well as providing criteria to control activation and deactivation. This file is required for the system to recognize the presence of a module.

The .info file should have the same name as the .module file and reside in the same directory. For example, if your module is named example.module then your .info file should be named example.info.

The following is a sample .info file from the views_bonus module:


; $Id$
name = Bonus: panels, teasers, 2 col
description = "Show views as teasers in two columns."
dependencies = views panels
package = Views

Wednesday, April 1, 2009

Describe Content type - Page and Story

Page

A page, similar in form to a story, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a page entry does not allow visitor comments and is not featured on the site's initial home page. edit delete
  • A page doesn't post author information, timestamps or comments by default.

Story

A story, similar in form to a page, is ideal for creating and displaying content that informs or engages website visitors. Press releases, site announcements, and informal blog-like entries may all be created with a story entry. By default, a story entry is automatically featured on the site's initial home page, and provides the ability to post comments.

  • A story does post author information, timestamps or comments by default.

What is Clean URL

"Clean URLs", eliminating the "?q=" in internal URLs. Note that this works only for Apache servers which have the mod_rewrite Apache module configured and mod_rewrite enabled in httpd.conf configuration file.

What are the default core modules

The following modules are default modules available in Drupal 6.x version.
modules colored by green is default selected modules, they are automatically get installed when Drupal installation.

* Aggregator => Aggregates syndicated content (RSS, RDF, and Atom feeds).

* Blog => Enables keeping easily and regularly updated user web pages or blogs.
* Blog API => Allows users to post content using applications that support XML-RPC blog APIs.
* Book => Allows users to structure site pages in a hierarchy or outline.
* Color => Allows the user to change the color scheme of certain themes.
* Comment => Allows users to comment on and discuss published content.
* Contact => Enables the use of both personal and site-wide contact forms.
* Content translation => Allows content to be translated into different languages.
* Database logging => Logs and records system events to the database.
* Forum => Enables threaded discussions about general topics.
* Help => Manages the display of online help.
* Locale => Adds language handling functionality and enables the translation of the user interface to languages other than English.
* Menu => Allows administrators to customize the site navigation menu.
* OpenID => Allows users to log into your site using OpenID.
* Path => Allows users to rename URLs.
* PHP filter => Allows embedded PHP code/snippets to be evaluated.
* Ping => Alerts other sites when your site has been updated.
* Poll => Allows your site to capture votes on different topics in the form of multiple choice questions.
* Profile => Supports configurable user profiles.
* Search => Enables site-wide keyword searching.
* Statistics => Logs access statistics for your site.
* Syslog => Logs and records system events to syslog.
* Taxonomy => Enables the categorization of content.
* Throttle => Handles the auto-throttling mechanism, to control site congestion.
* Tracker => Enables tracking of recent posts for users.
* Trigger => Enables actions to be fired on certain system events, such as when new content is created.
* Update status => Checks the status of available updates for Drupal and your installed modules and themes.
* Upload => Allows users to upload and attach files to content.

What is difference between Node and Story