Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Modifying the "add" function on complextablefield

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

Page: 1
Go to End
Author Topic: 725 Views
  • Robbo
    Avatar
    Community Member
    3 Posts

    Modifying the "add" function on complextablefield Link to this post

    Hi Guys, sorry if this has already been asked, but I couldn't find it.

    I have a many_many, and this is displayed in the CMS in a complextablefield (obviously).

    When I go to add a new one (using the add button at the bottom) what I get is a popup allowing me to create a new object.

    What I want is to be able to select from the list of already existing objects, to add that object's ID to the many many relation.

    I have a feeling in my waters that i need to override / overload getCMSFields, but I'm not entirely sure how.

    Can anyone help me with this? much appreciated!

  • Robbo
    Avatar
    Community Member
    3 Posts

    Re: Modifying the "add" function on complextablefield Link to this post

    OK I feel like a bit of a plonker rodney,

    What I needed was a ManyManyComplexTableField, then I get the checkboxes next to each one, so to add an existing one, I can just tick it!!

    Thought I'd better write the answer here in case there is any more plonkers out there like me...

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