I can't to fix this, let's start again
First of all I was created two transformation in news documents where
Document alias source field is set to NewsID
1. NewsListing
2. NewsDetail
In NewsListing transformation I was added this code
<a href="/KenticoCMS/News.aspx?ID=<%# Eval("NewsID") %>"><%# Eval("NewsTitle") %></a>
In NewsDetail transformation I was added this code
<h1><%# Eval("NewsTitle") %></h1>
<%# GetDateTime("NewsReleaseDate", "d") %><br/>
<%# IfEmpty(Eval("NewsTeaser"), "", GetImage("NewsTeaser")) %>
<%# IfEmpty(Eval("NewsSummary"), "", Eval("NewsSummary") + "<br />") %>
<%# Eval("NewsText") %>
Thats for this
Next in CMSDesk
I was created page name News.aspx with template name News
Under News .aspx I created my news1, news2, news3 documents with template NewsDetail
On the Page.aspx I was added Repeater with this settings
- Path: /News/%
- Document types: CMS.News
- ORDER BY expression: NewsReleaseDate DESC
- WHERE condition: NewsID = {%ToInt(ID, "0")%}
- Transformation: CMS.News.NewsListing
- Selected item transformation: CMS.News.NewsDetail
On the NewsDetail template I was added another Repeater for with this settings
- Path: /News/%
- Document types: CMS.News
- Selected item transformation: CMS.News.NewsDetail
- Select top N documents : 1
Is this OK configurations???
Thanks in advance