Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Documents and Lists View modes: 
User avatar
Member
Member
Armysniper89 - 4/3/2012 6:39:38 AM
   
Documents and Lists
I have a document type called Biography which is a list of the authors of the site's content. Our site designer came up with a look for a list of authors and a separate look and feel for when you display the author itself. So I have a couple questions:

1. How do I display the list and then the individual items when clicked? I have to have the list be like a repeater with a customized transformation. I though of using the ArticleList control as it handles the list and the display but wasnt sure that was the best choice since this is not an "article".

2. How do I display this list of authors with one set of side bars on our right side and then separate side bars (such as the author's latest articles published) which are different than those displayed in the list of authors page?

I envision that the list of authors would be on a Page (Menu Item) page and the authors would be stored underneath it. Any best practice on how to approach this?

User avatar
Kentico Support
Kentico Support
kentico_janh - 4/4/2012 3:04:01 AM
   
RE:Documents and Lists
Hello,

1) I recommend you to create your own document type Author and you can define it custom fields like FirstName, LastName, etc., then you can create a standard Page (menu item) called Biography and place a Repeater web part on it. This web part has two importent properties (Transformation, Selected item transformation), in which you can define, how the Author list will look like and how you display detail information about Author after someone click on him.

2) Also by using repeaters, but the second one will be more difficult to be made, because you would need to select latest articles, paired them woth authors and after then display them in repeater.

Please follow the links below to our documentation to learn more about custom document types and transformations:

http://devnet.kentico.com/docs/devguide/index.html?defining_a_new_document_type.htm
http://devnet.kentico.com/docs/devguide/index.html?writing_transformations.htm

Best regards,
Jan Hermann

User avatar
Member
Member
Armysniper89 - 4/5/2012 1:43:30 PM
   
RE:Documents and Lists
I already got the document type created and the repeater is working. The problem is that the repeater runs on one page template type and the authors needs to display on a separate template because the one that uses the repeater, has no side bars and the one that shows the authors has a right side bar that displays content based on the author, such as "latest publications". So how do I pull it off? I create a page template for the authors themselves and assigned it as the default template type of the authors data type but it wont display in that template, it always uses the parent page which has the repeater.

User avatar
Kentico Support
Kentico Support
kentico_janh - 4/6/2012 9:19:11 AM
   
RE:Documents and Lists
Hello,

That is not a problem. You can link your authors to the original location by their NodeAliasPath property and then Authors documents will share the same template with that side bars. So please update the trasformation in your repeater to link items by their NodeAliasPath instead of the GetDocumentUrl method:

<a href='~<%# Eval("NodeAliasPath") %>'>...</a>


Best regards,
Jan Hermann

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 4/4/2012 7:41:55 AM
   
RE:Documents and Lists
Armysniper I've got a "Staff" document type already created with some different transformations already. If you're interested let me know and I can share it with you. Send me an email bkehren at gmail dot com.