ASPX templates
Version 7.x > ASPX templates > Display News Item View modes: 
User avatar
Certified Developer 8
Certified Developer 8
duongtv-smartosc - 9/10/2013 4:35:09 AM
   
Display News Item
Hello,

I'm a newbie in Kentico, i having a trouble with my first app. Please help me.

I have a News List page using repeater to displays all items in 1 column. And I have a News details page used to display selected item, on the right of this detail page I want to display list of 10 newest items.

My question is how to display 10 newest items on news detail page only?

User avatar
Kentico Customer Success
Kentico Customer Success
Accepted solutionAccepted solution
kentico_martind2 - 9/12/2013 7:35:05 AM
   
RE:Display News Item
Helllo,

For this purpose you can simply use another Repeater where you will use WHERE condition according to the date order you want and set Select top N documents property to 10.

Best Regards,
Martin Danko

User avatar
Certified Developer 8
Certified Developer 8
duongtv-smartosc - 9/13/2013 4:32:02 AM
   
RE:Display News Item
Thanks Martin.