Filefield

Drupal filefield errors on node forms

in drupal, formAPI, filefield, error

For a recent client, I needed a node-add form in a custom path. Unfortunately, loading the form there via code (in order to prepopulate the node object) lead to all sorts of FileField errors, and the solution proved to be extraordinarily simple.

Read more »

Getting the value of a CCK field without node_load

in PHP, drupal, d6, cck, filefield, imagefield

More often than not, you'll come to a point where you need a field value of a node. Not the whole node, just a field. The most common case would appear to be when you need an image (say a promotional image). Some ways are easier than others for it, however you need to think of what you are doing under the hood.

Read more »