More in this section

Forums / Developing with Sitefinity / Parent child custom generic based module

Parent child custom generic based module

2 posts, 0 answered
  1. Ray
    Ray avatar
    15 posts
    Registered:
    09 Jul 2008
    03 Apr 2009
    Link to this post
    I am looking to create Generic Content based  module in Sitefinity. I am wondering if it is possible to have a parent child relationship with this kind of  module like how the Blogs module has a blog and then the blog items. All the examples I see only take in account single items not linked to any sort of parent. Thanks.
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    06 Apr 2009
    Link to this post
    Hi Ray,

    In the moment, there are no rules or restrictions to the type of objects you could create.
    This means that your object could have a two properties for example:
    * ID - its ID
    * ParentID - its parent ID.

    Then you need to create a lookup table, in which you will have the ParentIDs only. With this structure, you could have as many child elements as you want.

    The rest of the work will be to prepare your views, but this would be the easier part I think. Once you have the structure, you can always list only the items having the necessary ParentID.

    In Sitefinity 4.0 and the upcoming GC architecture, these cases will be handled automatically, since we are going to implement a hierarchical approach for all Generic Content based items.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
2 posts, 0 answered