David Ansermot Web Developer / TYPO3 Integrator

29nov/110

TYPO3 – Disable upload option for images fields in DS

A small tip today but usefull for contributors.

When you make a FCE, and use fields of type “image” of “image fixed W + H”, the contributor can select image in TYPO3 or upload a new one.

By putting this code in the field’s config xml in your datastructure, it’ll block the upload field. (You can do the same for the browser)

  1. <disable_controls>upload</disable_controls>

Exemple

  1. <tceforms type="array">
  2.         <label>Image</label>
  3.         <config type="array">
  4.                 …
  5.                 <maxitems>1</maxitems>
  6.                 <minitems>1</minitems>
  7.                 <disable_controls>upload</disable_controls>
  8.         </config>
  9. </tceforms>

Enjoy

qrCode

Posts that maybe you want to read ::

Commentaires (0) Trackbacks (0)

Aucun commentaire pour l'instant


Leave a comment

(required)

Aucun trackbacks pour l'instant