By stdbrouw on
I'm having some problems getting my head around the CCK api. The module I'm working on should create a few CCK fields and add them to a content type. The documentation I've found at http://drupal.org/node/101742 is geared towards creating your own field types and widgets... but I only want to create fields of an existing type (that is, a field name and some default values) and have the validation etc. handled by CCK instead of defining it myself - similarly to adding these fields with the interface in Drupal.
Is this doable, and if so, could somebody point me in the right direction?
Thanks.
Comments
No idea, anybody?
No idea, anybody?
Could this help you?
Could this help you? http://drupal.org/node/293663
Not really unfortunately. I
Not really unfortunately. I need to add new CCK fields, not the contents of those fields.
try this
try this:
like this:
note that I can get a list of all 'widget_types' like this:
Cool, thanks! I'd been
Cool, thanks! I'd been searching through the CCK code but couldn't find what I needed. Apparently you're better at it than I am :-)
will see somehow make it
will this somehow make it through cck main code?
Hi, I'm with one problem. I
Hi,
I'm with one problem. I need to present some result of query result like a field in all drupal nodes.
I pass to explain.
I execute some queries, and i need to present in node, as link to another contents. But my problem is in, how to do this....
I already change the form of add and edit, to add somes fields as i need.. But I can't add some like this in final node form.
Anyone can help me??
Thanks