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

creating grouped lists in the cms. how ?


Go to End


661 Views

Avatar
lx

Community Member, 83 Posts

6 February 2013 at 2:16am

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