Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

DOM FIleDataObjectManager Issue


Go to End
Reply

11 Posts   1343 Views

Avatar
Peter_SS

15 June 2010 at 12:07am (Last edited: 15 June 2010 12:08am), Community Member, 19 Posts

Hi guys i would like to ask if there's a way to clear/remove files already uploaded when creating a new record? thanks in advance

Avatar
pinkp

15 June 2010 at 1:39am Community Member, 168 Posts

Is this any help...

http://www.silverstripe.org/all-other-modules/show/266319?start=8#post286421

Avatar
UncleCheese

15 June 2010 at 1:54am 4085 Posts

What exactly are you trying to do?

Avatar
Peter_SS

15 June 2010 at 2:09am (Last edited: 15 June 2010 2:18am), Community Member, 19 Posts

Thanks pinkp for the reply but i think i have a different problem. when i create a new record in admin i have this tab that allows users to upload files (pdf, jpeg), but it listed all the files that already uploaded. is there any way not show existing files on creating new record? Thanks

Avatar
UncleCheese

15 June 2010 at 2:29am 4085 Posts

Not sure what you mean?

Avatar
Peter_SS

15 June 2010 at 2:44am Community Member, 19 Posts

Hi UncleCheese,

I have this DataObjects
Nurse :
static $has_many = array(
      'NurseCredentials' => 'NurseCredential'   );
NurseCredentials :
static $has_one = array (
      'Attachment' => 'File',
      'Nurse' => 'Nurse'
   );

in the Nurse admin page i have Credentials tab. When uploading files using Data Object Manager it listed all files that are already uploaded. is there any way not to show existing files on creating new Nurse? Thanks!

Avatar
UncleCheese

15 June 2010 at 2:58am 4085 Posts

I still don't understand. Why would you want to hide existing records? How will you ever edit or delete them?

Avatar
Peter_SS

15 June 2010 at 3:53am Community Member, 19 Posts

the filemanager, by default, displays all the uploaded files, is there a way to hide these files that are not related to the current object that you're working with

Go to Top