London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
One solution would be to add a new attribute to topics. That is:
1. Go to the Community tab and click on "Attributes"
2. Click on the "Create Attribute" button.
3. Type in "Subscribers" as Attribute name, set For type to EPiServer.Community.Forum.Topic and Of type to EPiServer.Common.Security.IUser and click "Save information".
You can then get all subscribers to a topic:
IList subscribers = topic.GetAttributeValues("Subscribers");
And add new subscribers:
subscribers.Add(CurrentUser);
topic = (Topic) topic.Clone();
topic.SetAttributeValue("Subscribers", subscribers);
Thanks Joel!
My solution was exactly like the one you suggested, which works fine, but I'll take a look at your blog entry as well.
I would like to add the possibility to notify people (through e-mail) when a reply has been added to a topic.
Any ideas on how to do this? I was thinking of adding a list of userIDs to the topic in some way and when someone posts a reply, e-mails are sent to the people on that list. Perhaps this list can be stored in an attribute of the topic?
Or is there already funcionality for tracking topics?
Thanks in advance!