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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Managing member profiles inside a tab?


Go to End


4 Posts   949 Views

Avatar
FuturShoc

Community Member, 4 Posts

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?

Avatar
martimiz

Forum Moderator, 1391 Posts

15 December 2011 at 4:30am

Edited: 15/12/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...

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

Avatar
FuturShoc

Community Member, 4 Posts

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

Avatar
martimiz

Forum Moderator, 1391 Posts

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

Cheers, Martine