logo
  • Jobs
  • About Me
  • Contact
  • Home
« Extension to IBlogThis
Essential ASP.NET, cont’d »

Additional items for IBlogIt

Posted April 29th, 2003 by Matt Berther

Greg brings up some valid points. A few ideas I have are detailed below.

In the case of MovableType, as Im sure is the case with other blog software, there are numerous properties available when submitting a new post. Take for example:

  • Category
  • Convert Line Breaks
  • Allow Comments
  • Allow Pings
  • Additional Entry Text
  • Excerpt Entry Text
  • Keywords

Given this, and the fact that the aggregator should be able to display its own interface in the case of HasEditingGUI() returning false, should there be some method allowed to make these properties and whatever values available via this interface as well?

Im thinking something along the lines of:

public interface IBlogThisEx : IBlogThis
{
 ...
 BlogPropertyCollection Properties
}
 
public class BlogPropertyCollection : CollectionBase
{
 ...
}
 
public class BlogProperty
{
    private string _name;
    private IEnumerable _values;
 
    public string Name
    {
        get { return _name; }
        set { _name = value; }
    }
 
    public IEnumerable Values
    {
        get { return _values; }
        set { _values = value; }
    }
}

Secondly, since exceptions are likely to be thrown back to the aggregator, perhaps there should be a common Exception-derived object that the aggregator can expect. For example:

public class BlogThisException : Exception
{
    // Implementation goes in here
}

Thoughts? Am I way off my rocker here?

This entry was posted on Tuesday, April 29th, 2003 at 12:38 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Greg Reinacker
April 29th, 2003

Matt - I would think a plug-in could still present a GUI for setting options even if it returns false from HasEditingGUI(); it just wouldn’t prompt the user to edit the post again.

The problem I see with the property collection you discuss is that the aggregator wouldn’t know what properties to pass in, unless it knew details about the plug-in, which kind of kills the point.

I would think that when an item is submitted, the plug-in would look at its config, and look at the item passed in, and determine if it needs more information. If it does, it would prompt for it; if it doesn’t, it would just post…

Matt
April 29th, 2003

I may not have communicated this properly. The aggregator would call IBlogThisEx.Properties, in essence retrieving a list of properties and potential values for those properties.

Popping up a form to collect these extra values is a viable solution as well.

Greg Reinacker
April 30th, 2003

Hmm…I guess what I’m thinking is the aggregator is going to pass just about everything it has available inside the item itself, so it wouldn’t have any more information. So even if it knew these properties that the plug-in supported, it wouldn’t know what to put in them without a pre-existing “contract”, and even then, I doubt if it would have the necessary information anyway.

I’m thinking a plug-in popup form when a post happens is probably the way to go; maybe the popup could be optional, and you could set the behavior in the configuration settings?

Matt
April 30th, 2003

The more we talk about this, the more I like that idea.

This, however, does mean more work for me, as I will need to create an effective UI for this.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
-->

Social
  • mattberther on twitter
Syndication
Archives
  • August 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • February 2005
  • January 2005
  • December 2004
  • November 2004
  • October 2004
  • September 2004
  • August 2004
  • July 2004
  • June 2004
  • May 2004
  • April 2004
  • March 2004
  • February 2004
  • January 2004
  • December 2003
  • November 2003
  • October 2003
  • September 2003
  • August 2003
  • July 2003
  • June 2003
  • May 2003
  • April 2003
  • March 2003
Jobs
mattberther.com © 2003 - 2008