0

Is there a possibility to limit the number of selectable images for the media_selection content type? According to the documentation there is none, but maybe there is still a way?

Reason is, that I want to allow to add an image to a text, but only one.

Maybe:

 <property name="image" type="media_selection">
     <param name="maxSelectionAmount" value="1"/>
 </property>
Andreas
  • 1,691
  • 1
  • 15
  • 34

1 Answers1

2

There is nothing like that at the moment... What we have implement in the alphas of 2.0 is that the is a separate single_media_selection content type. This works well for limiting the assigned medias to one but still doesn't allow to restrict to an arbitrary number.

Daniel Rotter
  • 1,998
  • 2
  • 16
  • 33