Noticed that odd/even classes are attached in the reverse order to field items (i.e. first item marked as 'even' and second item as 'odd' etc. ... and not vice versa like in other list views) when using Expert field template (field formatter) and adding odd/even classes to field item.

Small patch attached to change order of odd/even classes in ds_extras -module.

Comments

mitrpaka’s picture

Issue summary: View changes
aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

Will look at this soonish... looks ok

aspilicious’s picture

Status: Reviewed & tested by the community » Fixed

  • aspilicious committed 5c0364c on 7.x-2.x
    Issue #2324537 by mitrpaka: Fixed Odd/even classes for field items.
    
aspilicious’s picture

Version: 7.x-2.x-dev » 8.x-2.x-dev
Status: Fixed » Patch (to be ported)

Could you also make a patch for the 8.X branch?

mitrpaka’s picture

As of now, 8.x-2.x doesn't seem to have Add odd/even classes -option implemented for field item.

Hjarnmastara’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new2.9 KB

Ported this to d8. But perhaps we shouldn't provide this feature (see https://www.drupal.org/node/2178215).

aspilicious’s picture

Status: Needs review » Closed (fixed)

Not going to do this anymore.
Thank you Hjarnmastara for the effort in Montpellier.