22431 Posts in 6976 Topics by 2750 members
|Go to End|
26 January 2009 at 6:45pm
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
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
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.
PS: Any future assistance would be greatly appreciated by me and the rest of the community
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.
28 January 2009 at 9:24am Last edited: 28 January 2009 9:27am
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
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.
|Go to Top|