Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | audio_body_field.patch | 472 bytes | jseffel |
Comments
Comment #1
codeglyph CreditAttribution: codeglyph commentedI 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 :)
Comment #2
jseffel CreditAttribution: jseffel commentedI 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.
Comment #3
codeglyph CreditAttribution: codeglyph commentedThis 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