Orchardcollaboration icon indicating copy to clipboard operation
Orchardcollaboration copied to clipboard

How to create a widget to show followed items?

Open giannik opened this issue 8 years ago • 4 comments

Currently I can follow discussions and wiki pages. Is there a widget to show items I am following ? Thanks.

giannik avatar Feb 07 '17 21:02 giannik

No not at the moment. The followers are stored in the ContentItem and they are not persisted in their own table which in terms of performance in loading the ContentItem is good, but it makes it difficult to run a query that give us the list of items that I am following. We can have a special widget that build an HqlQuery that searches for userId in the FollowerPart. It would not be nice & best practice, but it would work.

siyamandayubi avatar Feb 08 '17 06:02 siyamandayubi

Ok, I get it. Thanks.

giannik avatar Feb 08 '17 07:02 giannik

So , I guess the benefit of following an item is to receive notifications if something changes ? Correct?

giannik avatar Feb 08 '17 11:02 giannik

Yep, that is true. Also it would be trivial to represent list of people who follow an item.

siyamandayubi avatar Feb 08 '17 11:02 siyamandayubi