Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Modify FileField

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 3050 Views
  • JuLo
    Avatar
    Community Member
    37 Posts

    Re: Modify FileField Link to this post

    I have no idea why that works, but it does.

    Thanks a lot.

    It would be great if you could explain what that ID thing means though.
    I hate not understanding.

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Modify FileField Link to this post

    ;-)

    It might be a little unclear from the docs .. But if you create a has_one relationship , the framework creates a foreign key for the related table in the database table ...

    so if you have a student HAS ONE address it will create an addressID column in your student table... When selecting an address in a dropdown , you are effectively selecting a database-ID , and want to write that in your addressID field in your student-table...

    Hope that clears it up .. good luck !

  • JuLo
    Avatar
    Community Member
    37 Posts

    Re: Modify FileField Link to this post

    I think I get it.

    Thanks again.

    3050 Views
Page: 1 2 3
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.