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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

GriedField & many_many relation between DataObjefcts

Go to End



Community Member, 107 Posts

15 August 2012 at 12:09am

I am having a problem with customizing the many_many relation between 2 DataObjects . Following this tutorial , GreidField works fine in my code but I cant find a way to use CheckBox instead of a table !
Here is my code .
SGallery extends Page :
SGalleryImage extends DataObject :
SGalleryImageCategory extends DataObject :

I am thinking the problem is on SGalleryImage ? How can I customize the existing griedField or/and change it to CheckBox ?
- I Need a tab where I can add more categories
- I need each SGalleryImage to have a Checkbox list or dropdownSelect to select which categories the Object is related to

If anyone got the time & can help me out ? this also will work a good tutorial on GriedField :)