Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

SOLVED - subfolder added to $Attachment.URL ??


Go to End
Reply


2 Posts   728 Views

Avatar
wainui

Community Member, 56 Posts

24 August 2010 at 5:15pm

Edited: 24/08/2010 8:08pm

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

Avatar
wainui

Community Member, 56 Posts

24 August 2010 at 8:09pm

Fixed it using

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

In config :)