14 December 2011 at 6:06am
I am building our own events feature ("Save Your Seat") in a SilverStripe-powered site. (Lets a user buy tickets to an event.)
So far, I've built a new page type for managing all aspects of ticket orders in the control panel. The "Save Your Seat" page (in SS control panel) has tabs for "Ticket Orders" and "Events" - the data relationships are working great and I can add/edit events as well as view ticket orders inside the tabs.
What I need to do now is add a "Members" tab to that same page to list all users. That list should contain anyone who has registered via the MemberProfiles module.
My question: Is it possible to add a new tab to my "Save Your Seat" page type based on the existing MemberProfiles data object?
15 December 2011 at 4:30am
(Last edited: 15 December 2011 4:31am),
You mean - without an existing relation between MemberProfiles and Page? I don't think you can... But maybe you could define a many-many relation (and never use it). Then a ManyManyComplexTableField would work...
Although you'd probably get that warning when leaving the page without saving...
15 December 2011 at 4:33am
I've since managed to get the base Member list (without MemberProfile module) to show up as a third tab in my Save Your Seat page control panel. That seems to work great. It now allows me to manage members, events and registrations all in one place...
15 December 2011 at 5:23am
OK - congrats :-)
Now, when things get very successfull, and the number of members soars, you might want to look at the ModelAdmin. It will also let you manage things all in the one spot, but it is far more efficient on large numbers of records...