Not sure if this should be in views or ds, but it might be useful outside of views as well.

I have been using ds to create nicely formatted displays for use in Omega. I typically have displays for common grid widths, grid-3, grid-4, etc. This allows me to select the proper image formatter for the grid and make other customizations. Great!

My issue is that I would like to add a class to the wrapper of every nth node so I can add the alpha and omega classes. I would say this is views-specific, if not for the fact that I would like the same when rendering an entity reference field AND field collections. If ds handled this it would provide the functionality across all of the other modules.

Comments

palamida’s picture

I'm also interested in finding a way to add custom classes to multiple fields in display suite.
Something like that:
Add class ( ) to every ( ) multiple field item
This could solve elegantly the problem when using grides inside grides

On the other hand using views this is already possible (I think)

First you have to create new view modes for your content type (for example "custom teaser 1", "custom teaser 2" ...) - in DS Custom display settings
The new view modes are going to be identical to the original but with different classes assigned to fields, regions...

In views you can choose alternative view mode display for each row
- row 1 -> teaser
- row 2 -> custom teaser 1
- row 3 -> custom teaser 2

aspilicious’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

You can solve this with CSS. You don't need any code changes for that.