Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > How to set this up properly (parent-child relationships) View modes: 
User avatar
Member
Member
m.vandenberk-2binteractive - 10/27/2009 5:33:08 AM
   
How to set this up properly (parent-child relationships)
Hi all,

We're busy setting up our first Kentico website, and it's been a pretty smooth experience thus far. However there is one part I don't quite get from the developer documentation.

The website has a part devoted to courses. All courses are either in a main category or in a subcategory. How do I set up my document types in such way I can find all courses that are in a main category or a sub category below it? How do I properly link a course to a sub/main category?

I'm a bit lost setting up proper parent child relationships like I'm used to using 'regular' SQL.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/27/2009 8:45:24 AM
   
RE:How to set this up properly (parent-child relationships)
Hi,

You may display the children of appropriate documents by configuration of Path (in listing and viewers web parts). Here is more information about path formats: http://devnet.kentico.com/docs/devguide/appendix_b___path_expressions.htm

Optionally, you may use the Maximum nesting level property to restrict the documents only for one or more levels.

Regards the link to parent: you can e.g. insert the link on the parent document (e.g. Static text or Editable text web parts) and display it only for particular document types or add the Visibility condition not to display it on the parent daocument. If children uses the same template it will point to the parent.

The Web part documentation is here: http://devnet.kentico.com/downloads/KenticoCMS_WebParts.pdf


Best regards,
Helena Grulichova