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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Devin Carlson’s picture

Version: 7.x-3.15 » 7.x-3.x-dev
Component: Groups » Code
Status: Active » Needs review
FileSize
18.96 KB

It 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.

Devin Carlson’s picture

Status: Needs review » Fixed

Committed #1 to Commons 7.x-3.x.

  • Devin Carlson committed 9d72dd9 on 7.x-3.x
    Issue #2302701 by Devin Carlson: Standardized the weights of the primary...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.