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

Looped Join


6 Posts   701 Views


26 January 2009 at 6:45pm Community Member, 81 Posts

Hi again,
I would like to be able to create a function or link for the following scenario. Certain products fall into a Hardware category and others fall into a Software category. Each of those categories have subcategories such as Windows Software, Mac Sofware, Linux Software, etc (There are about 10-15 subcategories). I would like to be able to show these subcategories on the Software level page in a list with the software that falls under each subcategory.

Any ideas how? or any references?



27 January 2009 at 5:03am Community Member, 501 Posts

Pretty much depends on how you've set things up, but have a look at:

and a few recipes:

Also this could help you:

Hope this helps.


28 January 2009 at 5:43am Community Member, 81 Posts

Will see what I can do... (These are also the only links that I had in mind)

Unfortunately there is no more extensive documentation. If I could just get hold of the SS guys or get them to respond to my mails with my few questions then I would be able to contribute, further, to the current documentation.

Thanks anyways

PS: Any future assistance would be greatly appreciated by me and the rest of the community


28 January 2009 at 8:45am Community Member, 712 Posts

Have you done the tutorials or had a look at dio5's links? Your question is a pretty standard data model scenario. I think you'll find that the documentation has the answers. If you have a more specific question then I'm sure you'll get a better response.


28 January 2009 at 9:24am (Last edited: 28 January 2009 9:27am), Community Member, 81 Posts

Yes those links aren't what I am looking for. Let me try and use an example.

Lets say I have an Enum data type of A, B, C, D.... and those are the categories. Now, each of those have items assigned to them. For example A has 3, 4, 5 and B has 1, 2, 4

How can I show a list of each of these in the template and in their correct groups and thus showing the group as the heading for each group?


28 January 2009 at 9:45am Community Member, 712 Posts

The answers are in those pages.

[url][/url] has several examples of similar behaviour.