Drupal – Create New Custom Content Type with CCK

By default, there are 3 content types bundled with a new Drupal Installation. They are Blog, Page and Story. But the Blog content type is not available until you have enabled the Blog module in Drupal Core. So if you want to create your own content type, what you need is the Content Construction Kit module (CCK).

The CCK module is a very common module in the Drupal community. With CCK, you could add more fields in any content type rather than just having Title and Body in the node. Moreover, there are some field modules which provide a standard and ready-to-use field types such as Link, Email, Date… etc. You could find more information in the references at the end of this post.

So now i have installed and enabled CCK module. Then i create a new content type called Listed Item and save it.


Next, i add a new float field named as Item Price which stores the price of the listed item.


In the Display Fields tab, define the format of the Item Price.


Now i could create Listed Item node as new content.


Done =)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.