Drupal Association members fund grants that make connections all over the world.
I've been playing with Drupal for a while and I'd be interested in rendering various CCK fields using their widgets in my custom blocks and ctools panes.
For instance, I'd like to render CCK FileField files ina block and I was expecting a theme function to do it for me but that didn't work.
$out = theme('upload_attachments',$node->field_myfiles); $out = theme('upload_attachments',$node->field_myfiles);
eventually I did it manually:
$out = "" . theme('filefield_icon',$node->field_cv_myfiles) . l($node->field_myfiles['filename'],$node->field_myfiles['filepath']) . "";
How does the ['view'] property get rendered?
I've been looking for reference documentation but I can only find theming information.
I'd also be very interested in rendering a whole CCK group or fieldset by code instead of doing the fieldset myself and pulling all the contained fields, checking the permissions for each one.
Any direction would be appreciated.