Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
If you create a Post from Commons homepage, the media field is displayed below the text entry field (as expected).
If you create a Post from within a Group, the media field is displayed above the text entry field.
This is inconsistent and confusing to end-users, especially on mobile devices.
Other content types behave correctly within Groups.
This doesn't appear to be theme-related. Changing theme does not make a difference to the behaviour.
Comment | File | Size | Author |
---|---|---|---|
#1 | assign-unique-weights-to-fields-2302701-1.patch | 18.96 KB | Devin Carlson |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedIt looks like a number of the Commons fields have the same weight, which can lead to inconsistent display.
The attached patch assigns unique weights (both instance and display) to the primary Commons field instances (title, body, media) which solves the problem. This also makes it easier for users to add their own fields as they no longer have to worry about the order of their fields and whether they will appear above Commons Documents body field but not Commons Posts, etc without reordering every field.
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedCommitted #1 to Commons 7.x-3.x.