Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Assets folder

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: 1834 Views
  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Assets folder Link to this post

    Is there a way to change the location of where SS looks for files and images?

    Right now it's set to just /assets folder. I would like to point it somewhere else. Is this possible? I found in /sapphire/core/core.php where the /assets' folder is getting set, but I don't know if that is only on install or what?

    Thank you for any help,

    Terry

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Assets folder Link to this post

    Find and replace over the whole project? From a quick look there is quite a lot of places where assets is defined as a path so could be interesting to change it.

  • TWoSH
    Avatar
    Community Member
    13 Posts

    Re: Assets folder Link to this post

    willr: does your answer also apply to multisites using symlinks? See this thread: http://silverstripe.org/general-questions/show/251650?start=8

    Thanks,
    Tim

  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Re: Assets folder Link to this post

    willr,

    thank you as always for the reply.

    I don't think I communicated properly. My apologies.

    I have pages with images in the pages that point to a directory in the html code to /images/filename.jpg

    This comes from the old site where we copied and pasted the pages into the html editor in SS. Worked great. We basically kept the standard /images/ subdirectory structure.

    As we creating new pages and wanting to drop images on to the page, we are directed to the default /assets/ folder to grab an image. I would like the default to be something other than the /assets folder. I see in SS where this is set in files&images, but I can't figure how to change this.

    Your thoughts,

    Terry

  • Bundschuh
    Avatar
    Community Member
    10 Posts

    Re: Assets folder Link to this post

    Hello Terry,

    have you found a proper solution yet for your issue?

    Greetings Bundschuh

  • Martin D.
    Avatar
    Community Member
    21 Posts

    Re: Assets folder Link to this post

    Is this still not possible? It would be great to be able to set the path to the assets directory.

    1834 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.