Jump to:

23478 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Select Photo From Already Attached To Page

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: 245 Views
  • Liam
    Community Member
    470 Posts

    Select Photo From Already Attached To Page Link to this post

    I have a page that has the ability to add numerous images to it with UploadField

    public static $many_many = array(
        'Images' => 'Image'

    $f = new UploadField('Images', 'Photos');

    I want the user to be able to select a default photo to be used in the template side of things. So I want to setup another field where the user can pick from the photos already attached to the page and this can be called specifically on the template.

    Unless somebody has a better idea.

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.