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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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
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
This only works in trunk though, and is broken in the 2.3 series.
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