Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

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

Modifying the "add" function on complextablefield

Go to End

2 Posts   1094 Views


Community Member, 3 Posts

15 May 2011 at 11:20am

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!


Community Member, 3 Posts

15 May 2011 at 11:46am

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