Issue http://drupal.org/node/87474 restored the ability to add log messages to nodes. That was a very good thing!
However, the side-effect of that is that now this field is visible all the time for users with "administer nodes" privileges. While it's generally assumed that people with this permission will be technically proficient, this is not always the case; for example, forum moderators and such. They then start wondering what this field for, why it exists, what they're supposed to type in it, how to see what they typed, etc.
This therefore represents a bug in the UI, in that there's this field that's in most cases purely optional that's instead sitting there looking like a required field.
Proposed fix:
- Place log field in collapsible fieldset
- Make fieldset expanded by default if $node->revision is true.
- Otherwise, make it collapsed by default.
The downside is that enabling revisions one-time on a node involves four clicks: once to expand "Publishing Options", once to click "Create new revision", once to expand "Log message", and once to click in the box and begin to fill it in.
Generally though, I think the use case for revisions is to always leave them on or off for all nodes of a given type.
Comment | File | Size | Author |
---|---|---|---|
#20 | node_revision_prepare_1.patch | 1.66 KB | pwolanin |
#14 | node_revision_access_1.patch | 1.97 KB | pwolanin |
#12 | 101319-collapsible-log-2_1.patch | 609 bytes | forngren |
#9 | 101319-collapsible-log-2_0.patch | 2.08 KB | forngren |
#7 | 101319-collapsible-log-2.patch | 2.13 KB | forngren |
Comments
Comment #1
webchickThis was webernet's latest patch on this issue. Still needs some work.
Comment #2
forngren CreditAttribution: forngren commentedKeeping up with 6.x-dev.
Comment #3
forngren CreditAttribution: forngren commentedForgot patch and status.
Comment #4
BioALIEN CreditAttribution: BioALIEN commentedThis is perfect, subscribing.
I've always wondered why the log textarea wasn't shifted inside a fieldset. It always looked out of place so +1.
Comment #5
forngren CreditAttribution: forngren commentedUpdated patch
Comment #6
forngren CreditAttribution: forngren commentedAnd the patch...
Comment #7
forngren CreditAttribution: forngren commentedAnd another flavor.
Comment #8
Dries CreditAttribution: Dries commentedThis:
looks like a complicate way to write:
An important usability improvement though!
Comment #9
forngren CreditAttribution: forngren commentedUpdated according to Dries.
Comment #10
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #11
pwolanin CreditAttribution: pwolanin commentedpossible problem with the patch, this relocated checkbox:
no longer has an #access check, so normal users can decide whether or not to make a revision. Is that desired? to be consistent with the former method, it should have:
Comment #12
forngren CreditAttribution: forngren commentedGood catch.
Comment #13
forngren CreditAttribution: forngren commentedComment #14
pwolanin CreditAttribution: pwolanin commentedAlso, this:
and associated code should move to node_object_prepare() , so that hook_nodapi can use $op='prepare' to change $node->revision, etc.
patch attached to clean up these 2 aspects of revisions on the node form
Comment #15
Dries CreditAttribution: Dries commentedCommitted. Thanks.
Comment #16
pwolanin CreditAttribution: pwolanin commented@Dries -do you want the other part of #14 as a separate issue, or did you not see it?
Comment #17
BioALIEN CreditAttribution: BioALIEN commentedpwolanin, I think Dries missed your post and patch in #14 by a minute.
Comment #18
pwolanin CreditAttribution: pwolanin commentedshould a file a separate issue? I think the change makes sense (even for a backport).
Comment #19
Dries CreditAttribution: Dries commentedAh, I think we just crossed each other. A quick re-roll would be helpful.
Comment #20
pwolanin CreditAttribution: pwolanin commentedre-rolled. Note again, the purpose of this change in the relative positioining of this piece of code is to let node/nodeapi modules set $node->revision, or potentially to change the node form based upon it.
Comment #21
Dries CreditAttribution: Dries commentedCommitted. Thanks.
Comment #22
(not verified) CreditAttribution: commented