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

Listing Pages and Related DataObjects


Reply


3 Posts   1173 Views

Avatar
Nobrainer Web

Community Member, 137 Posts

10 October 2010 at 12:30pm

Hi guys, I need some help creating a table that will list properties of a model, and display a checkmark/1/true if the model has the listed property.
I want the available models to be listed as rows, and all the available "properties" of the models to be columns.
The header row should display Model ? PropertyName1 ? PropertyName2 etc...
The body rows should display the modelname, and a checkmark/yes for each of the properties if the are checked in the ManyManyComplexTableField.

This image shows what i would like to achieve: http://dl.dropbox.com/u/8818235/Properties.png

My code can be found here: http://www.sspaste.com/paste/show/4cb0f7153832e
and the template file here: http://www.sspaste.com/paste/show/4cb0f7c90b176

Can someone tell me what i need to change to make this work?

Avatar
Nobrainer Web

Community Member, 137 Posts

13 October 2010 at 10:08pm

Anyone that can tell me how this can be done?

Avatar
ttyl

Community Member, 114 Posts

19 October 2010 at 4:35am

where is the function refereneced by this?

<% control ModelProperties %>