Closed (fixed)
Project:
Panels
Version:
6.x-3.5
Component:
Panel nodes
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2010 at 19:39 UTC
Updated:
21 Sep 2010 at 19:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedYour patch wont' apply. It doesn't specify what file it's modifying.
Comment #2
omerida commentedHere's another patch, last time I use NetBeans to generate a patch...
Comment #3
omerida commentedupdated patch provided
Comment #4
merlinofchaos commentedOk, so the primary reason I didn't use node_body_field() is that it does the split teaser/body -- the panel node 'body' is only being used as a teaser. The 'split teaser' button (which is kind of bad UI anyway) will be confusing.
Comment #5
omerida commentedI think it's more confusing that a panel node 'body' doesn't behave as other node bodies. Plus, it seems to create more bugs with other modules, that expect the body field to work consistently.
Nonetheless, attached is a patch that replicates node_body_field sans teaser js sillines. I think the expectations are the div w/class "body-field-wrapper" around the fieldset and also that the form elements be within $form['body_field']
Comment #6
merlinofchaos commentedWhy remove the description?
It's ok that it does not behave like other body fields. The description tells you that it's different.
Perhaps it's a bug in the other modules making an assumption that all body fields behave the same way? There's nothing that says all node modules have to have a body. It could easily be disabled.
Comment #7
omerida commentedTrue, but if it's enabled it should work like other body fields. The description can stay, not sure why my diff removed it - i'll submit another patch tomorrow AM.
Comment #8
omerida commentedAnother patch, this one simply adds the wrapping div and puts the body and format elements inside the body_field parent.
Comment #9
merlinofchaos commentedOk, this one I can get behind.
Comment #10
omerida commentedsweet - should I mark this as closed-fixed ?