How do articles get published?

May 1, 2009 at 1:16 AM
Can someone please describe how articles get published or point me in the direction of this description?

many thanks
-doug
Coordinator
May 1, 2009 at 1:59 AM
Login as an Admin, you will find a Control Panel box in the Top Right Corner, Hit the publish button, a confirmation will appear click okay and the article will be published.        
May 1, 2009 at 4:59 AM
ahh, yes, I saw that but none of the articles where getting published.  After looking through the config file, I realized that there was a 4 hour wait between the time an article gets submitted and when you can actually publish the article. 

I also noted that there was another value (10 days) which I'm unclear about.  Is there a way to only publish one article or a subset of articles?  Is there a way to have articles auto publish after it has received so many 'shouts'?  What does the 'Unapproved' and 'Publishable' states mean exactly?  After setting the 4 hour time wait to 0 and publishing all the articles, I also see that the 'Publishable' state has a count of two even though there are not any articles any the Upcoming view.  Also, I didn't realize what the Admin login was until I studied the config file for awhile.

Perhaps you could describe the rules in a more comprehensive way someplace?

thanks
-doug
May 1, 2009 at 6:56 AM
Ok, I found some information in the FAQ on http://dotnetshoutout.com/Faq

Coordinator
May 2, 2009 at 5:17 AM
Just checkout the following post:
http://weblogs.asp.net/rashid/archive/2009/05/02/for-us-by-us.aspx
Jul 14, 2009 at 9:19 PM

I just read the blog post . Very helpful, thank you.

One question though, why is publishing a manual process reather than being automated?

Developer
Jul 15, 2009 at 12:29 AM

Here's my blog post on how to automate the process.

http://www.kodefuguru.com/post/2009/07/14/Automating-KiGG-Publishing.aspx

Jul 15, 2009 at 12:31 PM

What if we take this question as an opportunity to document the workflow of a story
Before a story get published, it has first to be submitted
Here is what I found

Submit button ===> StoryController.Submit

StoryService.Create

 _storyRepository.Add(story);

 // The Initial vote;
 story.Promote(story.CreationDate, byUser, userIPAddress);
 
 // Capture the thumbnail
 _thumbnail.Capture(story.Url);

  // Subscribe comments by default
 story.SubscribeComment(byUser);

 // Approve the story
 story.Approve(SystemTime.Now());

 // Publish the StorySubmitEvent
 _eventAggregator.GetEvent<StorySubmitEvent>().Publish(new StorySubmitEventArgs(story, detailUrl));

This event is received by those subscribers

  • UserScoreService      ==> to increase the score of the submitter
  • PingServer                ==> I guess to check the existence ot the URL using the service of http://www.weblogs.com
  • SendTwitterMessage ==> to submit ontoTwitter
  • PingStory                 ==> I do not know the purpose of this action

 

Jul 22, 2009 at 7:48 PM

The purpose of PingStory is to leave a trackback link on a blog from which the article, we are submitting, comes from.