I would like to clone the story node type with the addition of a single extra field linked to a specific taxonomy vocabulary.
Basically, I am creating a code examples library and want examples to include free-tagging "Verified on" field to let submitters specify on which SDKs they tested their code.

Could you please, point me where to start?
Handbook example on creating a node type looks well, but I can't find there how to add such an extra field

P.S.
I tried using flexinode, but it has too many problems for me: doesn't show "submitted by", doesn't follow teaser length limitations, doesn't follow <!--break--> tag, etc

Comments

dado’s picture

Once you've created the new node type, go to
adininster -> categories -> add vocabulary
Under "Types":, check your new node type, and be sure to check "Free tagging" toward the bottom.

Now, when people enter a new node of your type, they will see a free tagging input field.

On creating new node types, if your new node type has fields beyond title and body, you'll need to add a table and code to handle the new fields. The node_example.module in the drupal handbook is a good reference. Just go to "view source" and copy the code. Replace all occurances of "node_example" with your new module name. And you have a starting point.

dado
http://schtickdisc.org

Artem’s picture

Thank you. For my case I really can namely copy the story type and just add an extra vocabulary. If I ever would like to extend the new node type, I'll follow your advice about the node_example.module