Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » ResourcePage

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3 4
Go to End
Author Topic: 1758 Views
  • innyinskip
    Avatar
    Community Member
    46 Posts

    ResourcePage Link to this post

    Hey Guys,

    I have got the ResourcePage example from the DOM thread in this forum and built it into my site along with swfupload.
    (Not using the bulkuploader module)

    The problem i have is that i will be having a number of content managers reponsible for seporate sections of the site.
    When i create a user and only giv them permissions to their particular part they cannot use the resource upload tab.
    (Comes up with a 500 server error) but when i give them full admin rights then they can.
    Is there anything i can do to set the permissions on this to allow them to upload?

    Can post any code or errors if needed.
    Thanks Chaps

  • UncleCheese
    Avatar
    4085 Posts

    Re: ResourcePage Link to this post

    It sounds like you might be using the SWFUpload module. I'd recommend switching to Uploadify. http://www.leftandmain.com/silverstripe-modules/2010/08/26/uploadify/

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • innyinskip
    Avatar
    Community Member
    46 Posts

    Re: ResourcePage Link to this post

    Thanks Unclecheese, Have downloaded and installed the uploadify module but no objects seem to be uploading now, i get the popup where is asks for details to upload etc ut doenst actually upload the file to the folder.
    Would i have to change anything in the code to switch from SWF to uploadify?

    any help is really appreciated!

    Craig

  • UncleCheese
    Avatar
    4085 Posts

    Re: ResourcePage Link to this post

    You shouldn't need to change anything else. You're saying the resources appear as records in the DOM, but the file associated with them is not on the server? is there a file ID? And if so, what does it point to?

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • innyinskip
    Avatar
    Community Member
    46 Posts

    Re: ResourcePage Link to this post

    Not Exactly,

    Have a look at this image:
    http://i1031.photobucket.com/albums/y375/innyinskip/Issue.jpg

    When i select upload doc etc..
    I can select the doc/PDf/XLS to upload and uploadify attempts to upload but doesnt upload or attach where it says 'Attached Files'

    Does that make sense?

  • UncleCheese
    Avatar
    4085 Posts

    Re: ResourcePage Link to this post

    Try adding:

    UploadifyField::show_debug();

    to your _config.php. That should force the uploader to alert the server response. If it is working correctly, you should get a number. That number represents the ID of the file that was uploaded.

    Also, you probably want to be doing your testing in a real browser, like Safari, FF, or Chrome. I do my best to test in IE when possible, but it's always finding new ways to bug out, so you never know.

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • innyinskip
    Avatar
    Community Member
    46 Posts

    Re: ResourcePage Link to this post

    Yea i got an ID: <<<374

    But it still ddidnt actually reference that into the Page

  • UncleCheese
    Avatar
    4085 Posts

    Re: ResourcePage Link to this post

    Have you confirmed that it works in a real browser or not?

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

    1758 Views
Page: 1 2 3 4
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.