Settings of News component are placed in configuration element <news>.

Note: Read to ensure you configured News component correctly.

Attribute/Sub-section name

Description

Required

basePath Virtual path of the folder MC_News where are the sources of News component. Yes
photosFolderPath Virtual path of folder where to upload news photos. Yes
photosAllowedExtensions Comma separated file extensions of the news photos. These are all allowed extensions for news photos. The default value is ".GIF,.JPG,.JPEG,.BMP". No
photosMaxSize Maximum allowed size for news photos. It is in KB. The dafault value is 100 KB. No
languages Comma separated .NET language cultures on which will be managed the news. Yes
allowPostingComments Flag whether posting comments to news is allowed. The default value is true. No
requireApprovingComments Flag whether comments should be approved by administrator before going alive on the web site. The default value is false. No
requireLoginToPostComments Flag whether visitor of the web site should login to post comments. The default value is false. No
postCommentsLoginUrl Virtual path of web page from where web site visitor should login to post comments. No
enableFullTextSearch Flag whether component to use full-text search when searching for news or comments. The default value is true. No
<backEndInterface/> Group some settings for the news administration interface.
  • loginUrl: Login page to which to News component to redirect if there is no currently logged user. If it is not specified then “Access denied” message will be displayed.
  • newsPageSize: Number of news to be displayed per page in the grid for listing news (News Administration). The default value is 10.
  • commentsPageSize: Number of comments to be displayed per page in the grid for listing comments (News Administration). The default value is 10.
  • usersPageSize: Number of users to be displayed per page in the grid for listing users (News Administration). The default value is 10.
No
<frontEndInterface/> Group some settings for the news front-end interface.
  • newsListPageUrl: Virtual path of the web page where the news will be listed in the front-end of the web site.
  • newsDetailsPageUrl: Virtual path of the web page where will be displayed the details of a selected news in the front-end of the web site.
Yes
<daabProvider/> Specifies the database provider which will be used by the News component. The component provides several providers from assembly Melon.Components.ApplicationBlocks.Data: Melon.Components.ApplicationBlocks.Data.SqlServer Melon.Components.ApplicationBlocks.Data.OleDb Melon.Components.ApplicationBlocks.Data.Odbc Yes
<connectionString/> In this sub-section should be specified the name of connection string from connectionStrings section used to connect to the database where news database entities are installed. Yes
<newsUserProvider/> In this sub-section should be specified the assembly and the class which implement Melon.Components.News.Providers.NewsUserProvider abstract class. This provider is the interface between the web site users and the News users. Yes
<commentUserProvider/> In this sub-section should be specified the assembly and the class which implement Melon.Components.News.Providers.CommentUserProvider abstract class. This sub-section is required only if only logged users can post comments to the news. No
licenseKey Component needs license key if it is used in a web site, which is accessed with DNS different than localhost (or 127.0.0.1 IP). No