Jump to:

23451 Posts in 18899 Topics by 2877 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 857 Views
  • Aaron Brockhurst
    Avatar
    Community Member
    30 Posts

    Image location Link to this post

    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

  • Mo
    Avatar
    Community Member
    508 Posts

    Re: Image location Link to this post

    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

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: Image location Link to this post

    This only works in trunk though, and is broken in the 2.3 series.

  • Aaron Brockhurst
    Avatar
    Community Member
    30 Posts

    Re: Image location Link to this post

    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

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