Hi Guys,
I've set up a site and I'm currently plumbing in some custom functionality - one of the things I need to do is add some fields and data to the member object. As such I've:
- Extended the Member using a DataObjectDecorator
- Created two data objects, both of which hold trivial data (lets call them Foo and Bar)
- Created a many to many relationship between Member and my two data objects - I.e. all of my members can be associated with any or all of the data objects
- Used 2 ManyManyComplexTableField in updateCMSFields on the aforementioned DataObjectDecorator to display/edit the relationships in the Member pop up view.
Now, my problems are that when I view a member, I can't add a new Foo or Bar as there is no "Add new Foo" button. I've gotten around this by instead of going through the pop up in security (when you click on a user), going straight to the following page in my browser:
/admin/security/EditForm/field/Members/item/2/edit
This has allowed me to create Foo's and Bar's as much as I want, and they now show up on both the direct (above URL) and regular (view Security) Member views. However I can't associated my Member (heh) with any of the Foo or Bar's I have created - I check the boxes, save, it's saves without errors but no associations are created. I've double checked in the database.
So my question is basically: Is associating data objects with Members even possible, or have I missed the big entry in the wiki that states "Members can't be associated with Data objects you fool".
Cheers
Robbie