Ektron CMS400.Net Reference

>>Managing Content > Blogs > Blog Server Controls > BlogRecentPosts Server Control

BlogRecentPosts Server Control

The BlogRecentPosts server control displays a list of recent blog post links on a Web form. When a site visitor clicks a link, he is directed to the blog post. The NumberofPosts property lets you control how many links appear.

Typically, this control is displayed with other individual Blog server controls. See Also: Using Blog Server Control vs. Individual Blog Controls

Note: On a PageBuilder page, you can display recent blog posts using the Recent blog posts widget. See Also: Widget Reference

BlogRecentPosts Server Control Properties

The following table explains the BlogRecentPosts control's properties.

Note: The following table only lists Ektron-specific properties. It does not describe native .NET properties such as font, height, width and border style. For documentation of these properties, see Visual Studio help.

Property

Value

Data Type

Authenticated

Indicates if you are logged in to the CMS Explorer and can use it to browse to Content, Collections, etc. See Also: Using CMS Explorer to Browse Your Ektron CMS400.NET Site

String

BlogID

The ID of the blog in Ektron CMS400.NET. For example: 41.

If you don’t know the ID of the blog, use the CMS Explorer to browse to it. See Also: Using CMS Explorer to Browse Your Ektron CMS400.NET Site

Long

BlogStartDateRange

Set the date range of the Blogs to show. For example, if you want to display blogs for only the past 3 months, set this value to Quarterly.

None - no start date range

Monthly - current month

Quarterly - past 3 months

BiYearly - past 6 months

Yearly - past 12 months

String

CacheInterval

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, set this property to 300 (three hundred). See Also: Caching with Server Controls

Double

 

DoInitFill

By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, FIll is automatically called during the Page Render event.

You might do this if you need to set or change a property on the control in codebehind and have it render with your changes shown.

Boolean

Hide

Used to hide the control in design time and run time.

True = Hide the control

False = Show the control

Boolean

Language

Set a language for viewing the blog’s Recent Posts list. This property shows results in design-time (in Visual Studio) and at run-time (in a browser).

Integer

NumberofPosts

Sets the number of post links to display. The default is 5 (five).

Integer

SuppressWrapperTags

Suppresses the output of the span/div tags around the control. The default is False.

True - Suppress wrap tags.

False - Allow wrap tags.

Boolean


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.