17691 Posts in 4607 Topics by 2180 members
General Questions
SilverStripe Forums » General Questions » Image location
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 595 Views |
-
Image location

27 October 2009 at 12:22am
Hi
Can someone tell me how I define where images are stored in the assets directory when using:
$fields->addFieldToTab("Root.Content.Images", new ImageField('Image','Page Image'));
Thanks
Aaron
-
Re: Image location

27 October 2009 at 9:48am
Apparently like this: http://doc.silverstripe.org/doku.php?id=imagefield
I would be interested to hear if this works for you, for me it always seems to just dump the files in the assets directory, no matter what I enter.
Mo
-
Re: Image location

27 October 2009 at 10:29am
This only works in trunk though, and is broken in the 2.3 series.
-
Re: Image location

27 October 2009 at 10:44am
That explains why it's never worked for me either
Thanks for the suggestion. I'll take a look at the trunk code to see if there's a fix that can be used
Thanks
Aaron
| 595 Views | ||
|
Page:
1
|
Go to Top |



