Jump to:

23358 Posts in 17875 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Change "assets" file path

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 263 Views
  • JefersonPaz
    Avatar
    Community Member
    3 Posts

    Change "assets" file path Link to this post

    Hi, i have 2 silverstripes installed, but I need them to share the same assets folder because the images are the same, how to i get one of them to do that?

    I've changed couple files like core.php and other one but nothing happened. Can anyone help me?

    Thanks!

  • Bereusei
    Avatar
    Community Member
    94 Posts

    Re: Change "assets" file path Link to this post

    You use anywhere a uploadfield? Try this:

    $fields->addFieldToTab(
    'Root.Upload',
    $uploadField = new UploadField(
    $name = 'GalleryImages',
    $title = 'Please upload one or more images' )
    );
    $uploadField->setFolderName('customfolder');

  • JefersonPaz
    Avatar
    Community Member
    3 Posts

    Re: Change "assets" file path Link to this post

    I use in one of them, the other one (cms) was made to be static, using the content from the first one. All I need is to one of them to recognize the assets folder in another directory, not in the cms root. Thanks!

    263 Views
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.