Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

How to Add New Content Type to Drupal-Based Site

Submitted by on January 13, 2010 – 9:16 amNo Comment

As you develop your Drupal website, you may occasionally find yourself needing to create custom content types other than the ones that come with a basic Drupal installation (Page and Story).

Here’s how to create that new content type:

  1. Login to your Drupal site;
  2. I recommend you to install some additional modules to create more functional content types:

· File Field

· Image

· Image Cache

· CCK (enable Content, File Fields, Image Field, Number and Text)

You can find the detailed instructions to do this in the previous article: http://phpmysql.guru/2010/01/how-to-install-a-new-module-to-drupal-based-site/#more-677).

  1. Select Administer > Content Management > Content types item from the admin left navigation menu:
    clip_image002
  2. You will see the list of all the content types on your site. The default ones are Page and Story:
    clip_image004
  3. Click Add content type tab at the top of the page;
  4. Fill in the content type parameters:

· For Name, enter the name of your content type as your users will see it.

· For Type, enter the name Drupal will use internally to refer to this content type.

· View through Workflow settings section. You can specify a number of useful options that will apply by default to all items of this type here.

· Decide whether or not you’d like to allow comments by default for items of this new type under Comment settings.

7. Scroll to the bottom of the page and click Save content type button:
clip_image006

From now, whenever you wish to create content for your site, you will see a new entry.

When new content is added to your site, you can view it through admin > Administer > Content Management > Content.

There are a few more complex things you can do with custom content types; for instance, your custom content type can collect and display more than just the standard fields. This is very easy to do:

  1. In the left navigation menu, choose admin > Administer > Content management > Content types.
  2. You will see a list of all the content types currently available. Choose the manage fields link next to the content type to which you’d like to add a field.
  3. In one of the blank New field rows at the bottom of the list of fields, enter your new field’s Label and Field name.
  4. Choose a Type.
  5. Choose a Form element. Text field is usually fine for simple data like this.
  6. Click Save to save your changes.
  7. On the next page, you’ll be given quite a few additional settings for how your new field will behave.
  8. When you’re finished with these settings, click Save field settings to continue.

That’s all!

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.