Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > news title View modes: 
User avatar
Member
Member
pavel.1991-tut - 4/12/2013 5:00:37 AM
   
news title
I use standard news document type. And I use standard news transformations. Now I have the next task: there must be year title above the first news of each year. How can I do this in transformation?
News list must looks like this:
2010
news title description

news title description

news title description

2011
news title description

news title description

news title description

2012
news title description

news title description

news title description

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 4/12/2013 9:37:56 AM
   
RE:news title
You could do a few things:

1. Create the structure like you show in your content tree. For instance, create News/<year>/News Items. Then use either a nested repeater to display the <year> and news items or a Hierarchical Viewer to display the year and news items.

2. Leave the structure as News/news items and create a query to get the distinct year values, then use a custom query repeater to display those values and nest another repeater inside there to display the actual news items.