The BaseNewsModule type exposes the following members.

Constructors

  Name Description
Public method BaseNewsModule
Constructor.

Methods

  Name Description
Public method ApplyChanges
Apply web part property changes.
(Overrides BasePart..::..ApplyChanges()()()().)
Public method BindNews
Binds news.
Protected method ClearNewsFilter
Clears news filter.
Protected method ClearNewsPrefetch
Clears news Prefetch.
Protected method ClearNewsSorter
Clears news sorter.
Protected method GetDateString(Boolean, Nullable<(Of <<'(DateTime>)>>), String)
Gets the formatted date string.
Protected method GetDateString(Boolean, Nullable<(Of <<'(DateTime>)>>), String, Boolean)
Gets the formatted date string.
Protected method GetNewsData
Gets news data.
Public method GetRssChannel
Gets the rss channel.
Protected method InitializeNewsItemUrl
Initialize news item url.
Protected method InitNewsFilter
Initializes news filter.

Note: To initialize news filter please set the following options:

Protected method InitNewsHolder
Initializes news holder control.
Protected method InitNewsModuleSettings
Initializes news module settings.
Protected method InitPager
Initializes a pager.
Protected method InitPagerHolder
Initializes pager holder control.
Public method ManageVerbs
Manages news-related custom verbs.
(Overrides BasePart..::..ManageVerbs()()()().)
Public method NewsItemDataBound
News item data bound.
Protected method OnInit
On page init handler.
(Overrides BasePart..::..OnInit(EventArgs).)
Protected method OnLoad
On page load handler.
(Overrides BasePart..::..OnLoad(EventArgs).)
Protected method pager_PageIndexChanged
Pager index changed event.
Protected method ParseTemplateTags
Formats the comment data for display using the template.
Protected method UpdateViewCount(NewsItemEntity)
Updates view count.
Protected method UpdateViewCount(IEntityCollection2)
Updates view count.

Extension Methods

  Name Description
Public Extension Method ConvertTo(Type) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)()()()() Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)(TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method GetCurrentStackTrace
Gets current stack trace information.
(Defined by ObjectExtension.)
Public Extension Method GetDebugInformation
Gets the debug information for currently executing code.
(Defined by ObjectExtension.)
Public Extension Method GetExecutingMethodName
Gets the executing method name.
(Defined by ObjectExtension.)
Public Extension Method GetPagerTemplate
Gets pager template.
(Defined by ControlExtension.)
Public Extension Method GetPropertyType
Gets a property type.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyValue
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.)
Public Extension Method PropertyExists
Check if property exists.
(Defined by ObjectExtension.)
Public Extension Method SetPropertyValue
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.)

Fields

  Name Description
Public field Static member NewsTemplatesFolder
News template folder.
Protected field pager
News module pager.
Protected field rssChannel
News rss channel.

Properties

  Name Description
Public property AvatarSize
Gets or sets Avatar size - 1 to 80 for gravatars.
Public property CategoryFilterId
Gets or sets category filter for the news module (Defined by the personalization settings).
Public property CategoryId
Gets or sets selected news category id (Defined in the url query parameters). Note: CategoryId is ignored if category filter is set
Public property ContentSharingEnabled
Gets or sets if Content Sharing is enabled.
Public property CssClass
Gets or sets CssClass for the news module.
Public property CustomTags
Gets or sets custom tags.
Public property DataSource
Gets the news module data source.
Public property DateTimeFormat
Gets or sets date time format.
Public property EditRoles
Array of Guids that identify the roles which are allowed to edit this part.
(Overrides BasePart..::..EditRoles.)
Public property EnablePrettyDateFormat
Gets or sets if pretty date format is enabled.

Note: Example of pretty date format '2 days ago'.

Public property ExternalReadMorePage
Gets or sets external read more page
Protected property Filter
Gets the main news filter container.
Public property GravatarRenderType
Type of the avatar to be rendered - if not set, the web.config settings are used.
Public property IsEmpty
Gets the flag if there are no news items according to the current filter.
Protected property IsNewsModulePlacedOnHomePage
Gets or sets if news module place holder is home page
Public property LongDateTimeFormat
Gets or sets long date time format.
Public property MaximumContentLength
Gets or sets a maximum news content length.
Public property MaximumShortContentLength
Gets or sets a maximum news short content length.
Public property ModuleType
Public property NewsHolderControl
Gets or sets a news holder control.
Public property NewsRepeatColumns
Gets or sets news repeat columns.
Public property NewsRepeatDirection
Gets or sets news repeat direction.
Public property NumberOfNewsItemsToShow
Gets or sets the maximum number of news items that news module should show

Note: 0 is unlimited

Public property PagerPageSize
Gets or sets the pager page size.
Protected property Prefetch
Gets the main news sorter container.
Public property RatingHistoryTemplatePath
Gets or sets the rating history template path.
Public property RatingSkin
Gets or sets news module rating control default skin.
Public property RatingTemplatePath
Gets or sets the rating template path.
Public property ReadMorePage
Gets or sets the read more page Note: If left blank news content is opened on same page
Public property ReadMorePageTitle
Gets or sets read more page Title.
Public property ReadMorePageUrl
Gets or sets read more page url
Public property RssEnabled
Gets or sets if Rss Engine should use this web part RSS channels.
Public property ShowAllItems
Gets or sets if news module should show all items, regardless of wheter they are expired or not.
Public property ShowCategoryTitle
Gets or sets if news module should show category title.
Public property ShowCategoryTitleAsLink
Gets or sets if news module should show category title as link.
Public property ShowCreateDate
Gets or sets if news module should show date of creation.
Public property ShowCustomDate
Gets or sets if news module should show custom date.
Public property ShowFullCategoryPathway
Gets or sets if news module should show full category pathway.
Public property ShowIfEmpty
Gets or sets module visibility if there is no news items .
Public property ShowModificationDate
Gets or sets if news module should show modification date.
Public property ShowNewsFromSubCategories
Gets or sets if news module should show news from category filter sub categories.
Public property ShowPublishDates
Gets or sets a value indicating whether publish dates should be visible.
Public property ShowRating
Gets or sets if news module should show rating.
Public property ShowRatingHistory
Gets or sets if news module should show rating history.
Public property ShowRevision
Gets or sets if news module should show revison number.
Public property ShowShortContent
Gets or sets if news module should show short content. Note: If set to False full news content will be displayed.
Public property ShowTitle
Gets or sets if news module should show title.
Public property ShowUsername
Gets or sets if news module should show Username.
Public property ShowViewCount
Gets or sets if news module should show view count.
Protected property Sorter
Gets the main news sorter container.
Public property UserProfileUrl
URL of the user profile page. If empty, a postback is performed to the same page.
Public property UseTellAFriendProvider
Gets or sets if Content Sharing Engine should use Tell a Friend as default provider (over the Add This provider).

Events

  Name Description
Public event RenderContentSharingItem

See Also