November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi Anders,
Most Viewed has never caused me any trouble. But as you get a Forum-page in between the Member pages it sounds like Type might not be specified when calling GetVisitedItems. What does your call look like?
Working example:
// Get the most viewed members
VisitableEntityCollection visitedItems = VisitHandler.GetVisitedItems(typeof(Community.MyPage.MyPage), page, ucMembers.PageSize, Utils.CacheTimeOut.MostViewed, out totalItems, new VisitableEntitySortOrder(VisitableEntitySortField.NumVisits, SortingDirection.Descending));
Karoline
Hi,
I have specified typeof(Community.MyPAge.MyPage) just as you have in your example, but still its giving me a forum page in between...
here is my function call:
VisitableEntityCollection visitedItems = VisitHandler.GetVisitedItems(typeof(EPiServer.Community.MyPage.MyPage), page, ucMembers.PageSize,
CacheTimeOut.MostViewed, out totalItems, new VisitableEntitySortOrder(VisitableEntitySortField.NumVisits, SortingDirection.Descending));
Regards,
Anders
Hi,
I have specified typeof(Community.MyPAge.MyPage) just as you have in your example, but still its giving me a forum page in between...
here is my function call:
VisitableEntityCollection visitedItems = VisitHandler.GetVisitedItems(typeof(EPiServer.Community.MyPage.MyPage), page, ucMembers.PageSize,
CacheTimeOut.MostViewed, out totalItems, new VisitableEntitySortOrder(VisitableEntitySortField.NumVisits, SortingDirection.Descending));
Regards,
Anders
I believe this is caused by a known issue, you can get a hotfix from EPiSupport.
Dear fellow Relate+ developers,
we are working on a Relate+ solution for a customer, and they have reported that when pressing the "Most viewed" linkbutton in the member list, it fails.
It looks like it doesn't work in the demosite either, have a look at: http://relate.episerver.com/Members/
..it looks like the call to the "GetVisitedItems" method returns a Forum-page in between the Member pages and it throws an exception in the foreach loop below it.
Has anyone else experienced this problem? Any solutions? :-)
Regards,
Anders