Howdy,
I'm learning about creating custom fields for CCK. Right now I'm struggling with adding a delete button or link to individual fields in a node edit form.

In the field settings, if I allow 'Unlimited' number of values, I can add fields when editing a node just fine. If I want to delete a field I added after clicking 'Add another item' button, I can't...yet.

So far I've found a couple great examples to get started with, but they don't hold the 'delete' button I seek:

  • Creating CCK fields in general here
  • Creating CCK compound fields here

Do you know of way to get around this? Do you know of a module that uses this type of functionality?

Best regards,

Chris

Comments

owntheweb’s picture

Let me know if this helps:
http://www.flickr.com/photos/8139783@N08/5403333974/

It's fine that Drupal just ignores the empty values. However, it gets more complicated when I'm dealing with compound fields. A nice 'x' button on the right would be great.

Worlds to explore. Worlds to create.
Blog: http://www.christopherstevens.cc/blog
Twitter: http://www.twitter.com/owntheweb

mecmartini’s picture

subscribe

uniquename’s picture

subscribe

geshido’s picture

subscribe

djahjah’s picture

subscribe