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)
-
<disable_controls>upload</disable_controls>
Exemple
-
<tceforms type="array">
-
<label>Image</label>
-
<config type="array">
-
…
-
<maxitems>1</maxitems>
-
<minitems>1</minitems>
-
<disable_controls>upload</disable_controls>
-
</config>
-
</tceforms>
Enjoy

Posts that maybe you want to read ::
Commentaires (0)
Trackbacks (0)
(Souscrire aux commentaires de cet article)
Aucun trackbacks pour l'instant
