Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » SOLVED - subfolder added to $Attachment.URL ??

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 659 Views
  • wainui
    Avatar
    Community Member
    56 Posts

    SOLVED - subfolder added to $Attachment.URL ?? Link to this post

    OK.. this is driving me crazy..

    I have a site which is in a subfolder called silverstripe..
    The base ref generated looks like

    <base href="http://localhost/silverstripe/"></base>


    no prblem.. but all the $Attachment.URL's also still have the /silverstripe/ in them???

    I looked in the database and it is not there.. where is this subfolder coming from??

    Any ideas

  • wainui
    Avatar
    Community Member
    56 Posts

    Re: SOLVED - subfolder added to $Attachment.URL ?? Link to this post

    Fixed it using

    Director::setBaseURL('http://localhost/silverstripe/');

    In config

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