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.
|
No |
| <frontEndInterface/> |
Group some settings for the news front-end interface.
|
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 |