After reading "Creating modules - a tutorial: Drupal 6.x" (http://drupal.org/node/206753) I understand how to create a Block module.
I've already done that.

Now I need to create a Node module.
After reading "Create new content-type for Drupal 6.x" (http://drupal.org/node/231019) I'm none the wiser.
This "tutorial" is not as intuitive as the previous one.

I found a grate page regarding building a Node Module Skeleton (http://www.leveltendesign.com/codesnippet/drupal-node-module-skeleton).

But it's provides no explanations.

Can anyone explain, or point me to tutorials that will help me make a node module?

Cheers!

Comments

Anonymous’s picture

Got a few questions on the IRC.

(...) Block modules create abbreviated content that is typically (but not always, and not required to be) displayed along the left or right side of a page. Node modules generate full page content (such as blog, forum, or book pages).

I'm not trying to create content type.
And I'm not trying to create a module that creates content type :)

My site has a top region and a main region.

I want to create a module that outputs information in the main region.

Anonymous’s picture

Another note:

I do not wish to display the content of the module through Blocks.
I want to output the content within defined regions.

alexpott’s picture

Strictly speaking to create a new content type on Drupal you do not need to create a module and with the CCK and Views modules there aren't many reasons to write a module that provides a content type. You can add a content type from here... /admin/content/types/add

CCK will add custom fields to your node type and Views will allow you list your content in blocks and pages.

Hope this helps

Alex Pott

aitala’s picture

The tutorial for Drupal 6 - http://drupal.org/node/231019 - basically shows you how to build a new module which has a new content type. As the other commenter noted, in many cases all you need is CCK and Views to add fields to a new content type that you define in the 'Content Types' admin area.

Eric

__________

Eric Aitala - f1m@f1m.com
The Formula 1 Modeling Website
www.f1m.com

__________
Eric Aitala - ema13@psu.edu
Penn State

224b8605113373e086cb27708ff301ba18ce394db1996e7e22928e4555e0d20b1b6cecc7f67c9bd9e536cb915779c485