Jump to:

22975 Posts in 11620 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Looped Join

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

Page: 1
Go to End
Author Topic: 649 Views
  • Terminator4
    Avatar
    Community Member
    81 Posts

    Looped Join Link to this post

    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

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Looped Join Link to this post

    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.

  • Terminator4
    Avatar
    Community Member
    81 Posts

    Re: Looped Join Link to this post

    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

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Looped Join Link to this post

    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.

  • Terminator4
    Avatar
    Community Member
    81 Posts

    Re: Looped Join Link to this post

    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?

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Looped Join Link to this post

    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.

    649 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.