Ok, I thought I knew how to list articles in EPi v4.61.I've done this many times in many different ways before.Now, after 1 year from EPi.... I must be getting senile!
I cannot for the life of.... get NewsList to list any articles. It might by something fundamental I've forgotten. I've tried the following without success.
<EPiServer:NewsList runat="server" id="articleList" SortBy="PageName">------articleList.PageLink = CurrentPage.PageLink; // PageReference.Parse(CurrentPagearticleList.DataBind();
Attempt 2:<EPiServer:NewsList runat="server" id="articleList" SortBy="PageName">------PageDataCollection newsPages = GetChildren(CurrentPage.PageLink);articleList.DataSource = newsPages;articleList.DataBind();
Please help :)
If anyone else should encounter this problem, do the following:
1. Delete your template from you solution.
2. Add new template and input the same code.
I don't know why this happends....