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

Modifying the "add" function on complextablefield


2 Posts   742 Views


15 May 2011 at 11:20am Community Member, 3 Posts

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!


15 May 2011 at 11:46am Community Member, 3 Posts

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