Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Nested 'List of Acticles' View modes: 
User avatar
Member
Member
Aashish - 8/26/2011 7:07:12 AM
   
Nested 'List of Acticles'
Is it possible in Kentico to achieve functionality of Nested List of Acticles ?

Let us suppose take an instance where a user clicks on a particular article from the List of Articles. On clicking the article, user will be redirected to a page containing selected article details.

Now what i want is like if a user clicks on a particular article then user should be redirected to a page containing another 'list of articles' belonging to the selected article.

Please suggest.

Thanks in advance.

User avatar
Member
Member
lancetek - 8/26/2011 7:38:45 AM
   
RE:Nested 'List of Acticles'
Yes it's possible. You just edit the article page and put one of the 'list' web parts on it. Then configure the list to look at the 'child' articles, edit the transform you want to use on the list and like magic, you have it!

Depending on what you want the list to do, and what it's datasource will be will depend on what web part you want to use. There is even an 'Article list' web part that may be configured for what you need!

Lance

http://devnet.kentico.com/docs/5_5r2/devguide/index.html?content_management_overview.htm

User avatar
Member
Member
Aashish - 8/26/2011 8:40:45 AM
   
RE:Nested 'List of Acticles'
Could you please elaborate more on this ?

I will be glad i you tell me the steps to achieve this functionality.



User avatar
Member
Member
Aashish - 8/26/2011 8:41:01 AM
   
RE:Nested 'List of Acticles'
Could you please elaborate more on this ?

I will be glad if you tell me the steps to achieve this functionality.



User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/27/2011 5:50:53 AM
   
RE:Nested 'List of Acticles'
Hi,

here is a tranformation example with datalist nested control which display nested articles. It display the page document and list of articles under this node. You need to set property of repeater - Nested control ID. In this case it would be CMSDataList1.

page
--article



<strong><a href="<%# ResolveUrl(GetUrl( Eval("NodeAliasPath"), null)) %>">
<%# Eval("DocumentName") %></a></strong>
<br />

<cc1:CMSDataList ID="CMSDataList1" runat="server" ClassNames="cms.article" Path='<%# Eval("NodeAliasPath") %>'

TransformationName="cms.article.default" RepeatColumns="2" >

</cc1:CMSDataList>

<script runat="server">
protected void Page_PreRender(object sender, EventArgs e)
{
CMSDataList1.ReloadData(true);
}
</script>


User avatar
Member
Member
Aashish - 8/29/2011 1:53:17 AM
   
RE:Nested 'List of Acticles'
Thanks a ton. Its working now.

http://technoscatter.blogspot.com