7912 Posts in 1355 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 534 Views |
-
SOLVED - subfolder added to $Attachment.URL ??

24 August 2010 at 5:15pm Last edited: 24 August 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
-
Re: SOLVED - subfolder added to $Attachment.URL ??

24 August 2010 at 8:09pm
Fixed it using
Director::setBaseURL('http://localhost/silverstripe/');
In config
| 534 Views | ||
|
Page:
1
|
Go to Top |

