Archive for the ‘Drupal Tutorial’ category

Drupal Content types

April 19th, 2010

A single web site could contain many types of content, such as informational pages, news items, polls, blog posts, real estate listings, etc. In Drupal, each item of content is called a node, and each node belongs to a single content type, which defines various default settings for nodes of that type, such as whether the node is published automatically and whether comments are permitted.

When you first install Drupal with the default installation profile, you will have two content types defined: “Page” and “Story”. When you enable other core and contributed modules (by visiting Administer >> Site Building >> Modules), you will find that you have other content types available; you can also create your own content types (see below). Here is a list of the content types associated with core Drupal modules:

Blog Entry
A Blog (short for weblog) is an online journal or diary, and the core Blog module allows registered users on your site to create their own blogs. Each entry in a user blog has content type Blog Entry.
Book Page
Book pages are designed to be part of a collaborative book, enabled by the core Book module. An example of a collaborative book is the Drupal developer documentation. In older versions of Drupal, only nodes of content type Book Page could be added to a book, but now nodes of any content type can be part of a book.
Comment
Comments actually aren’t nodes, so Comment is technically not a “content type”. Enabling the Comment module allows site visitors to add comments (typically short notes and replies to other comments) to nodes on the site.
Forum
A Forum node defines a topic for a forum discussion; people can reply to the topic by using comments. Forum nodes are organized into subject areas via a Taxonomy (list of categories).
Page
The Page content type is enabled in Drupal in the default installation profile. Typically Pages are used for static content that can (but are not required to) be linked into the main navigation bar.
Poll
A poll is where a multiple choice question is asked, and users can answer and see other people’s answers to questions.
Story
The Story content type is enabled in Drupal in the default installation profile. Stories are generally used for information whose relevance decreases as time passes (such as news items), so that newer Stories will typically be placed higher on the page than older Stories.

In addition to these basic types, custom content types can also be created by going to Administer > Content > Content types > Add content type. You might do this as a way to organize your content — for instance, you might have “Article” and “News flash” as two simple content types on your site, rather than just using “Story” for both.

If you want to add fields to your custom content types, install the Content Construction Kit (CCK) contributed module. Custom fields are used to store additional information beyond the Drupal defaults (title, body, authoring information, time created/updated, and publishing status); for instance, on a real estate site, a real estate listing content type might have fields for the type of property, land area, etc. Additional information on the CCK module is available from the Content Construction Kit Handbook.

Finally, some contributed modules define their own content types. Check the Contributed Modules page of the Drupal handbook for more information on locating an appropriate module for your needs.

Ultimate Drupal Tutorial Collection

April 19th, 2010

Drupal is one of the most powerful open source content management system, voted by community and professionals as the best Open Source CMS in last two years. I have built many websites with Drupal, and found it a great solution for almost all kind of websites from simple blog to large corporate presentations.

image-holder1

Getting help on Drupal.org

  • Visit the Drupal’s handbook, where you will find a huge amount of Drupal tutorials and reciepes, community contributed videos, slides, tutorials and how to articles.
  • Visit the forum od Drupal.org, where you will find answers to almost every single Drrupal related question you might have.
  • Support page on Drupal.org is also be great place to find information to get started, get documented and get help. You will find training resources, books about Drupal, support providers, mailing lists, IRC rooms, guides…
  • Planet Drupal should be your next stop on drupaloshpere – it is an aggregator of (currently) 309 drupal related blogs, with great and highly useful information.
  • Drupal Groups can also be a great place to find people working with Drupal in your area, find job, talk about issues realted to your interests and proffesion – see Design for Drupal group if you are a designer.Watch videos of sessions from Drupal conferences in Washington DC and Szeged

Examples of Typical Drupal Applications

January 15th, 2010

Here are some typical Drupal usages:

  • Content management – Via a simple, browser-based interface, members can publish stories, blogs, polls, images, forums, etc. Administrators can easily customize the design of their Drupal installation.
  • The Drupal classification system allows hierarchical ordering, cross-indexing of posts and multiple category sets for most content types. Access to content is controlled through administrator-defined user roles. A search option is also available.
  • Weblog – A single installation can be configured as an individual personal weblog site or multiple individual weblogs. Drupal supports the Blogger API, provides RSS feeds for each individual blog and can be set to ping weblog directories when new content is posted on the home page.
  • Discussion-based community – A Drupal web site can be successfully used as a discussion forum. Comment boards, attached to most content types, make it simple for members to discuss new posts. Administrators can control whether content and comments are posted without approval, with administrator approval or through community moderation. With the built-in news aggregator, communities can subscribe to and then discuss content from other sites.
  • Collaboration – Used for managing the construction of Drupal, the project module is suitable for supporting other open source software projects. The wiki-like collaborative book module includes versions control, making it simple for a group to create, revise and maintain documentation or any other type of text.
  • FAQ – you can use the Drupal installation as a frequently asked questions platform.
PHP Freelancer