7935 Posts in 1536 Topics by 943 members
|Go to End|
10 February 2011 at 11:15pm Last edited: 10 February 2011 11:16pm
I created a website with a frondend DOM, so registrated users can create and modify their objects without logging in in the CMS. The object has a 'has_many' relation with the object 'VillaImages' managed by a IDOM. If you click on an object in the IDOM there is an uploadify ImageUploadField. The problem is that people can remove the image by clicking the 'x' in de ImageUploadField and after that saving the 'VillaImage' object. Than there is an Object with just a title and no image. Is there a way to remove the delete permission in the upload field? I tried $uploadfield->allowed_actions = array('upload', 'refresh'); But that didn't do anything. In the defaults there is no such thing as 'canDelete', so the method setVal is no option.
Do you have a solution?
Thanks in advance,
Frank van der Hammen
|Go to Top|