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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Managing member profiles inside a tab?


4 Posts   401 Views


14 December 2011 at 6:06am Community Member, 4 Posts

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), Forum Moderator, 1095 Posts

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

[EDIT] oh - and welcome to the forums :-)


15 December 2011 at 4:33am Community Member, 4 Posts

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 Forum Moderator, 1095 Posts

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

Cheers, Martine