Limit the number of fields to display on Field UI with Display Suite

This is probably the number one feature request during the D6 cycle of Display suite: limit the number of items on a multiple value field, usually on images. This involves custom coding in the form of creating new formatters over and over again in code or using the Custom formatters module. The upcoming release of Display Suite for Drupal 7 now puts an end to this annoying limitation. All Field API fields with a cardinality set to unlimited or more than one get an extra textfield on the manage display screens to limit the output per field. I've recorded a short screencast to demonstrate that exciting new suble feature. A new release is scheduled this wednesday, so test and report any errors when found!

There are also 2 issues on d.o to get this feature into other modules:


dddave on Sun, 31/07/2011 - 12:11

What you guys are doing with DS for Drupal is UBERamazing. The usefulness and amount of control you present for non-programming users is outstanding. I loved DS in D6 but in D7 my relationship becomes really creepy. ;)

kevster on Thu, 15/03/2012 - 17:55

Great video - doesnt seem to work for me using D7 + commerce - I dont have the option box to add values next to the image field (im using imagefield with multiple images in one field). commerce has a type product which isnt exposed as a content type - only the front end product display - maybe this is why? My search results page (using solr & ds to format the results) shows multiple images... thx

Bobby on Tue, 11/09/2012 - 19:35

I am also getting multiple images for the Product Display content type from Commerce. The # field is not visible for Product Display images from the Product.

Any update on this?

Add reply

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
Have you written a response to this? Let me know the URL by sending a webmention.