Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi I have created the following regions to upload a preview image.

Code: Select all
   
<cms:editable
name='work_thumb'
label='Kies een afbeelding of gif'
show_preview='1'
preview_width='200'
type='image'
group='works_group1'
order='1'/>

<cms:editable
name='work_thumb_500'
assoc_field='work_thumb'
label="Preview (500px)"
show_preview='1'
preview_width='200'
width='500'
type='thumbnail'
group='works_group1'
order='2'
enforce_max='1' />


This results in the following

Image

is it possible to disable and hide the crop button? Since it does no actual cropping. It just resizes the image to 500px width with a variable length?

Thanks in advance!
Hi,

One way of doing that would be by injecting your custom CSS into the admin page and using it to hide the unwanted elements.

Please see the 'Customizing the Form screen' section in viewtopic.php?f=5&t=10241 - basically you'd want to use the <cms:style> tag within <cms:config_form_view> block to introduce your CSS.

Hope this helps.
2 posts Page 1 of 1