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

creating grouped lists in the cms. how ?


Reply

302 Views

Avatar
lx

6 February 2013 at 2:16am Community Member, 83 Posts

i dont know how to do this in the cms:

I already have a DatabObject Employee.
In the cms employees can be managed with modeladmin.

Now i would like to add a TeamPage.php
A Teampage should look like a grouped list on the frontend.

Example: A new Teampage with the title "Webteam" might look like this.

WEBTEAM

Designers
----------------------
M.Mueller
H.Schulz
F.Jordan

Programming
----------------------
J.Smith

Testing
----------------------
K.Roberts
A.Heinz

The question is now, how could you build the cms for this TeamPage that enables the administrator to create such a Grouped List by seleting persons from the existing DataObject Employee.

What would be necessary in the cms:

- Defining the headings (titles) for each subgroup
- Adding employees to each subgroup
- sorting employees in each subgroup

A nice to have extension would be adding additional information to an employee for this subgroup (many_many extra fields)
For example:

WEBTEAM

Designers
----------------------
M.Mueller - responsible for the nice photoshop design
H.Schulz - created the html5
F.Jordan - did all css in this project

Programming
----------------------
J.Smith

Testing
----------------------
K.Roberts - found 34 bugs in 2 days
A.Heinz