For this common need, to extend blog, page, story or your own custom content type, you need to install one of the most important contributed modules, the Content Construction Kit or CCK.

  1. Install CCK and enable the individual modules that CCK offers.
  2. Follow the Getting Started instructions, in particular:
    1. Go to Administer > Content Management > Content Types (/admin/content/types)
    2. Select the Add new field tab, and follow the on-screen instructions.
    3. (for Drupal6 goto Administer >Content Management > Content Types > List. Chose the Manage Fields option next to the Content Type which you want to add fields to.

The CCK module only adds a few field types. Several contributed projects provide additional field types and widgets for CCK. A list of all CCK related modules is available here

Additional information is available at http://drupal.org/modules/cck/documentation

Comments

retif’s picture

how to make it in code?

Gilles Coeman’s picture

If you are still looking for the answer, here you can find more information ;) Creating a New Drupal Node Type