This project is read-only.
1
Vote

RSS not updating

description

If you modify an announcement, you will not see the new version in RSS. To fix it you need to change this line in AnnouncementController:

SearchItem = New SearchItemInfo(ModInfo.ModuleTitle & " - " & .Title, strDescription, .CreatedByUser, .PublishDate, ModInfo.ModuleID, .ItemId.ToString, strContent, "ItemId=" & .ItemId.ToString)

with

SearchItem = New SearchItemInfo(ModInfo.ModuleTitle & " - " & .Title, strDescription, .CreatedByUser, .PublishDate, ModInfo.ModuleID, .ItemId.ToString + "-" + .CreatedDate.ToString, strContent, "ItemId=" & .ItemId.ToString)

In any case, if you delete all announcements, you will always see the last one in feeds. I think it is related to searchindexer bug.

bye

comments

eclipse79 wrote Feb 19, 2014 at 9:05 AM

To fix also the deletion of last item, you need to add these lines after NEXT in the same function:

If Announcements.Count = 0 Then
            Dim SearchItem As SearchItemInfo

            SearchItem = New SearchItemInfo
            SearchItem.ModuleId = ModInfo.ModuleID
            SearchItem.GUID = String.Empty
            SearchItem.SearchKey = String.Empty

            SearchItemCollection.Add(SearchItem)
End If