Jump to:

22992 Posts in 11842 Topics by 2828 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: 206 Views
  • Liam
    Avatar
    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.

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