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   1455 Views

Avatar
Peter_SS

Community Member, 19 Posts

15 June 2010 at 12:07am

Edited: 15/06/2010 12:08am

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

Community Member, 168 Posts

15 June 2010 at 1:39am

Is this any help...

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

Avatar
UncleCheese

Forum Moderator, 4096 Posts

15 June 2010 at 1:54am

What exactly are you trying to do?

Avatar
Peter_SS

Community Member, 19 Posts

15 June 2010 at 2:09am

Edited: 15/06/2010 2:18am

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

Forum Moderator, 4096 Posts

15 June 2010 at 2:29am

Not sure what you mean?

Avatar
Peter_SS

Community Member, 19 Posts

15 June 2010 at 2:44am

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

Forum Moderator, 4096 Posts

15 June 2010 at 2:58am

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

Avatar
Peter_SS

Community Member, 19 Posts

15 June 2010 at 3:53am

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