Please, can you give me a example(or a module that does this) how to create a content type inside a module and how to add a new field to the content? Thanks
http://drupal.org/node/1044248 On 01/31/2011 07:36 PM, Fernando Correa da Conceição wrote:
Please, can you give me a example(or a module that does this) how to create a content type inside a module and how to add a new field to the content?
Thanks
If you're talking about Drupal 7, the node example and field example in the Examples project will be useful (http://drupal.org/project/examples). For Drupal 6, the node example in Examples explains how to add extra data and behavior (not really fields). And Jeff's link is one of several ways to add CCK fields in D6. -Randy On Mon, Jan 31, 2011 at 6:25 PM, <jeff@ayendesigns.com> wrote:
http://drupal.org/node/1044248
On 01/31/2011 07:36 PM, Fernando Correa da Conceição wrote:
Please, can you give me a example(or a module that does this) how to create
a content type inside a module and how to add a new field to the content?
Thanks
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
It's not CCK, but try Web Links (http://drupal.org/project/weblinks) or Site Notes (http://drupal.org/sitenotes). Web Links does notify CCK about the extra fields so they can be reordered. Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. ________________________________ From: Fernando Correa da Conceição <fernando@jaguaribe.net> To: development@drupal.org Sent: Mon, January 31, 2011 7:36:14 PM Subject: [development] How to create a content type and a field Please, can you give me a example(or a module that does this) how to create a content type inside a module and how to add a new field to the content? Thanks
participants (4)
-
Fernando Correa da Conceição -
jeff@ayendesigns.com -
nan wich -
Randy Fay