Try our conversational search powered by Generative AI!

NewsList in v4.61 not listing articles

Vote:
 

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.


Attempt 1:

<EPiServer:NewsList runat="server" id="articleList" SortBy="PageName">
------
articleList.PageLink = CurrentPage.PageLink; // PageReference.Parse(CurrentPage
articleList.DataBind();

 

Attempt 2:
<EPiServer:NewsList runat="server" id="articleList" SortBy="PageName">
------
PageDataCollection newsPages = GetChildren(CurrentPage.PageLink);
articleList.DataSource = newsPages;
articleList.DataBind();
 

Please help :) 

#32430
Sep 02, 2009 13:14
Vote:
 

Right....

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....

 

 

#32446
Sep 02, 2009 14:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.