ASPX templates
Version 4.x > ASPX templates > ASPX News Items View modes: 
User avatar
Member
Member
mrogers-brainloaf - 5/4/2009 8:52:38 AM
   
ASPX News Items
I am using News Items for a news section on my site. How do I create a template for an individual news item? The SelectedItemTransformationName doesn't seem to work with QueryRepeater. Also, I have a list on multiple pages that all need to link to the individual item. How can I do this?

I would like to create a template called NewsDetail.aspx that I apply to the News item in the CMS, but I don't know how to create the template section.

I would love more documentation about using ASPX templates for Kentico. Its very frustrating trying to divine the implementation of simple things.


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/13/2009 4:46:34 AM
   
RE:ASPX News Items
Hi,

I am sorry but I am probably not getting the meaning. You can create new ASPX page templates as described here in this Developer's guide article.

Also, in the ASPX tutorial you can find example on how to create the news section.

More about the page template approach is described in this knowledge base article.

I hope it will help.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
disco stu - 5/21/2009 6:12:50 AM
   
RE:ASPX News Items
isn't this all you need to do:
<uc1:repeater runat="server" ID="NewsRepeater" ClassNames="CMS.News" OrderBy="NewsReleaseDate DESC" TransformationName="CMS.News.NewsWithSummary" SelectedItemTransformationName="CMS.News.NewsDetail" />

then apply your look and feel to the transformation...