No matter what I try, the weight (i.e. sort order) of the audio node body field is ignored. I am using a CCK field as teaser that I want to appear before the body field, but I can't get it to show up there.

CommentFileSizeAuthor
#2 audio_body_field.patch472 bytesjseffel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

codeglyph’s picture

I don't know if this helps, but i've noticed one thing that makes drupal rendering erratic is to have more components on the same level. Or, to have components unassigned to a weight level. So, if you have some fields on let's say -6,-5 ,etc , but at a certain point you have more than one on same weight level everything may fall apart.
This is just something i think i noticed, never did too much research. Anyway i've encountered this related not to cck but to node creation forms. Might work if you tried to patiently set the weight for **everything** on that form.

I agree that the behavior of drupal's form renderer is unpredictable sometimes. I still don't know how i managed to get the body field below :)

jseffel’s picture

FileSize
472 bytes

I have the same problem - body on audio does not respect weight. I compared hook_form() with flashnode and image, they added the body field slightly different. I tried their approch, and it worked.

Attached patch.

codeglyph’s picture

Version: 6.x-1.0-unstable6 » 6.x-1.x-dev

This relates to node forms.I've noticed a strange behavior and i'm pretty sure it's the way it happens : for whatever reason the title field will not rise above -5 and the body will not sink below 0. That is ,even if you set the title to -15 and have another field at -6, the one at -6 will rise above the title. Same with the low level of the body field. The experience in finding this was very frustrating... So you basically have a -5 -to 0 range to fool around with.

running 6.19