Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Kentico Blog Subscription View modes: 
User avatar
Member
Member
sini.sivasankaran-solarwinds - 3/27/2013 2:52:51 AM
   
Kentico Blog Subscription
We plan to develops blogs using Kentico.
One of the feature we are providing in the Blog page is subscribing to the blog.
The subscribed user then gets email when new post is published
Right now I only see that Kentico provides subscribe to blog post and when new comments are added the user gets emails on the new comment added.

We tried getting the webpart ContentSuscbription working but unfortunately we are using Base version of the CMS and Notification module is not available.

Has anyone come across such a scenario , if so how did you get email subscription working.

For now what I have attempted to trigger an issue when new blog post is added.
This is done with the help of CMSModuleLoader with which we can manipulate DocumentEvents. If the document is in published step and a Blog post a new issue is generated in the Dynamic Newsletter which user has subscribed.

This piece of code does rest of the JOB
// Get dynamic newsletter
InfoDataSet<Newsletter> newsletter =
NewsletterProvider.GetNewsletters("NewsletterName = '" + newsLetterName + "'", "", 1, "NewsletterID");

if (newsletter.Items != null && newsletter.Items.Count > 0)
{
try
{
int newsletterId =
ValidationHelper.GetInteger(
DataHelper.GetDataRowValue(newsletter.Tables[0].Rows[0], "NewsletterID"), 0);


int issueId = EmailQueueManager.GenerateDynamicIssue(newsletterId);

if (issueId > 0)
{
Issue issue = IssueProvider.GetIssue(issueId);
if (issue != null)
{
issue.IssueText = body;
issue.IssueSubject = "New Blog Post!";
}

//Generate emails to be send
EmailQueueManager.GenerateEmails(issueId);
//Send all emails
EmailQueueManager.SendAllEmails(false);
}
}
catch (Exception ex)
{

}
}

User avatar
Kentico MVP
Kentico MVP
tfayas-avastonetech - 12/31/2013 11:29:55 AM
   
RE:Kentico Blog Subscription
I'm running into the same issue, thought the blog subscription would notify users when a new blog is there. I'm going to use the content subscription, and i made a custom unsubscribe module so users can unsubscribe (really wish kentico would make an unsubscribe module to go with the subscribe one). If you are ever able to use the content subscription module, i can get you the unsubscribe one.

User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 1/8/2014 9:23:08 AM
   
RE:Kentico Blog Subscription
Hello,

The content notification module is mainly aimed to be used by registered site users. Each user can manage their subscriptions in either:

CMS Desk -> My Desk -> My Profile -> Notifications

Or using the My Profile web part.

Regards,
Josef Dvorak