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.
On one client's CCK add/edit forms, the input format boxes are totally strange. See attached screenshot.
Has anyone ever seen this before and can throw me a bone as far as where to begin troubleshooting? You'll note the "enable rich-text" link which comes from tinymce in these screenshots, but I've already confirmed the problem persists without that module enabled.
Comment | File | Size | Author |
---|---|---|---|
#2 | CCK_bug_70647.patch.txt | 572 bytes | acp |
cck_input_format_weirdness.png | 10.56 KB | webchick |
Comments
Comment #1
webchickForgot to mention.. using most recent version of DRUPAL-4-7 and CCK DRUPAL-4-7 -- just updated seconds ago... this problem was also shown before the update, so is at least a week or two old.
Comment #2
acp CreditAttribution: acp commentedHello, I had the exact same problem. Having completely deleted my content type, I created a new one today to find out that my input format is above the textfield it is logically attached to. (that might be the reason you're getting two input formats one after another, the below one is misplaced).
While tweaking around to find a solution, I realized that the filter_form function accepts a weight parameter that is set to NULL by the CCK module. I tried to set it to the fields weight and still got my problem. Adding one to it seemed to fix this. I added two fields, with the same weight, one before and one after the one causing problems, the "input format" settings are printed correctly.
I'm providing a patch, although I truely believe that it needs a review since the problem might be elsewhere and only bypassed with this solution.
Comment #3
webchickI tested this and it did indeed get rid of the problem. I will try and do a more thorough review later but in the meantime, thank you very much!
Comment #4
Zach Harkey CreditAttribution: Zach Harkey commented+1 Like a charm.
Comment #5
JonBob CreditAttribution: JonBob commentedCommitted.
Comment #6
(not verified) CreditAttribution: commented