You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > Blog Class
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Blog Class

The Blog server control allows you to quickly add a blog to a Web form. It has all of the items commonly found on a blog page in one server control.

C#
[DefaultProperty("BlogID"), ToolboxData("<{0}:Blog runat=server></{0}:Blog>")]
public class Blog : EkWebPart;
Visual Basic
<DefaultProperty("BlogID"), ToolboxData("<{0}:Blog runat=server></{0}:Blog>")>
Public Class Blog
Inherits EkWebPart

Blog.cs

Name 
Description 
The methods of the Blog class are listed here. 
The properties of the Blog class are listed here. 
 
Name 
Description 
 
Fill 
Method that can be overridden and used to grab data from the back end for each server control.  
 
Renders the control for output as a string. Use this method to display your controls if you instantiate your control as a component in code behind.  
 
Wrap 
Method that can be overridden and used to wrap an Ektron toolbar corresponding to a particular Control around some Html text.  
 
Name 
Description 
 
Select whether the archive appears in month format or year format. The default is month.  
 
The ID of the blog to display when the blog is not associated with a specific user. To display a blog associated with a user, leave this property set to 0 (zero) and enter the user's ID in the DefaultUserID property.  
 
Sets the amount of time the server control’s data is cached. The default is 0 (zero). This is the amount of time, in seconds, a control’s data is cached. For example, if you want to cache the data for five minutes, you set the CacheInterval property to 300.  
 
The date of the last blog posts you want to appear. For example, if you want to display blog posts for January 1, 2007 and before, you enter 1/1/2007.  
 
The ID of the user who owns the blog to be displayed. This is used when the server control displays a user's blog. To display a blog not associated with a user, leave this property set to 0 (zero) and enter the blog's ID in the BlogID property.  
 
Gets or Sets the QueryString parameter to read a Blog ID dynamically. Set to String.Empty if you wish to always display the default Blog (static.)  
 
Gets or sets the QueryString parameter to read a User ID dynamically. Set to String.Empty if you wish to always display the default user's blog (static.)  
 
Sets the height of the blog editor in pixels.  
 
Sets the width of the blog editor in pixels.  
 
Set to True to allow users to edit their posts and replies in HTML.  
 
Set the maximum number of posts to display. The default is -3.

  • If set to 0 (zero), there is no limit.
  • If set to -1, all posts for the day are shown.
  • If set to -2, all post for the month are shown.
  • If set to -3, the control uses the # of Post Visible setting in the Workarea.

 

 
Checks the QueryString for this value and shows the post when specified. Leave blank to always display the blog.  
 
Sets the number of recent posts to display. Integer value, must be greater than 0 (Zero).  
 
Shows the title and tagline when set to True.  
 
Displays the icon for the RSS feed when set to True.  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!