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

Looped Join


Go to End


6 Posts   1450 Views

Avatar
Terminator4

Community Member, 81 Posts

26 January 2009 at 6:45pm

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?

Thanks

Avatar
dio5

Community Member, 501 Posts

27 January 2009 at 5:03am

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

http://doc.silverstripe.com/doku.php?id=datamodel

and a few recipes:

http://doc.silverstripe.com/doku.php?id=recipes:start&s=recipes#using_dataobjects

Also this could help you:

http://doc.silverstripe.com/doku.php?id=built-in-page-controls

Hope this helps.

Avatar
Terminator4

Community Member, 81 Posts

28 January 2009 at 5:43am

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

Avatar
Hamish

Community Member, 712 Posts

28 January 2009 at 8:45am

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.

Avatar
Terminator4

Community Member, 81 Posts

28 January 2009 at 9:24am

Edited: 28/01/2009 9:27am

Hi,
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?

Avatar
Hamish

Community Member, 712 Posts

28 January 2009 at 9:45am

The answers are in those pages.

http://doc.silverstripe.com/doku.php?id=recipes:start&s=recipes#using_dataobjects has several examples of similar behaviour.