Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » ModelAdmin - file upload not working for Content Contributor

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 345 Views
  • BenWu
    Community Member
    87 Posts

    ModelAdmin - file upload not working for Content Contributor Link to this post


    I got a class

    class Event extends DataObject {

    static $db = array(


    which is managed by ModelAdmin:
    class EventAdmin extends ModelAdmin{
    static $url_segment='events';
    static $menu_title ='Events';

    public static $managed_models = array('Event');


    Now when I login as the default admin, click on edit/add an event, the content field is shown as a tinymce. If I want to insert an image, i can click on the right hand side to upload a new image with no problem.

    However, when i login as an Content Contributor (which is allowed access to the Events section), I can add/remove/edit an event fine. The content contributor doesn't have access to the 'Page' section. When I would like to insert an image in tinymce, right after i choose an image to upload, my browser goes to blank.

    To make it works again, I have to give content contributor access to the 'Page' section. It's a work-around and it doesn't resolve my problem at all. It looks like there is some problem with base.js which is tricky to debug

Page: 1
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.