MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Blog: Send blog post to Email Address for internal network  (Mono Support )

54691 put(a) pogledan, 5 odgovor(a) 7.6.2012. 16:35:07Kreirao(la) erin0201
erin0201

erin0201

7.6.2012. 16:35:08
Hello,

Is there anyway to subscribe to the blog with your email address so that the posts are sent via email without having to use an RSS feed reader?
I know that Outlook has an RSS Feed Reader built in, but Entourage does not. Is there something I can configure that will send blog posts to email addresses?

Thanks!
Erin
Ovaj sadržaj još nije ocijenjen. 
453 Reputacija 61 Ukupno objava
erin0201

erin0201

7.6.2012. 16:37:35
This is an internal blog that can't be accessed from the internet, so it would be great if the feature used our email server to email the posts rather than trying to implement with some sort of online feed reader.

Thanks again for any advice!
Ovaj sadržaj još nije ocijenjen. 
453 Reputacija 61 Ukupno objava
khorvat

khorvat

7.6.2012. 17:35:00
Hi You can use BlogPostEdit module's save method override it and email published post.
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
erin0201

erin0201

7.6.2012. 17:42:58
Sorry, I don't get into the manual coding very often. Do you have any instructions that would show how to do this? I have found the Blog PostEdit file in the modules, but I don't see where the code is for the btnSave? I know I can put embed code in the page since the site is precompiled which means I can't edit a code behind file, but I don't see any code for the btnSave_Click that I can change.

Do you have a step by step example?

Thanks!
Erin
Ovaj sadržaj još nije ocijenjen. 
453 Reputacija 61 Ukupno objava
khorvat

khorvat

8.6.2012. 6:10:05
Hi,

you should inherit the BlogPostEdit.ascx.cs and then you should override the OnSave method e.g.

public partial class BlogPostEdit : MonoSoftware.MonoX.ModuleGallery.Blog.BlogPostEdit
{
  ...
        public override void OnSave()
        {
            base.OnSave();
            //Put your e-mail code here
        }
  ...
}

Now you need to copy the BlogPost.ascx mark-up and point Inherits attribute to your newly created class, then you should edit BlogContainer.ascx and point BlogPostEdit to your newly created BlogPostEdit.ascx.

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava