The goal of R7.News project is to provide a streamlined news subsystem for DNN Platform, which would take advantage from tight CMS integration and combinational approach to news article content authoring.
The R7.News is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
In order to setup discussions for R7.News, you need do the following:
Install (or ensure you have installed) latest DNN Forum or ActiveForums extensions.
Open R7.News.yml
config file in portal root directory in text editor.
Set proper values for params
for required provider in discuss-provider
section.
E.g. if you have some DNN Forum module instance (moduleId=145) placed on page with tabId=40
and you want discussion posts to be created on specific forum (forumId=2), then your configuration
should look like this:
discuss-providers:
- type: R7.News.Providers.DiscussProviders.DnnForumDiscussProvider
provider-key: DnnForum
params: ['40', '145', '2'] # tabId, moduleId, forumId
Comment unused providers using #
sign.
Restart application to apply changes.
To disable discussions, your discuss-providers
section in portal config file should look like this:
discuss-providers: []
Note that you could develop and register your own discuss providers by implementing IDiscussProvider
public interface.
To allow R7.News to use custom discuss provider:
Place a DLL with custom discuss provider class into bin
folder of DNN install.
Register custom discuss provider using portal config file by adding assembly name:
discuss-providers:
- type: YourCompany.DiscussProviders.YourCustomDiscussProvider, YourCompany.DiscussProviders
provider-key: YourCustomProviderKey
params: ['your', 'custom', 'provider', 'params', 'here']
Restart application to apply changes.
If all OK, you'll be able to create discussions for news entries using new provider. If not, see DNN event log for more info about what's wrong.
R7.News provides public node manipulator class for DDRMenu. In order to use it, you should do the following:
R7.News.yml
config file:
node-manipulator:
parent-node-tab-id: 77 # TabId of a parent menu node, to which news entries will be added as children
stream-module-tab-id: 77 # TabId of a page with Stream module instance
stream-module-id: 429 # ModuleId of Stream module instance
R7.News.Stream.Integrations.DDRMenu.StreamNodeManipulator
type name as NodeManipulator
setting value in DDRMenu module settings or skinobject parameters.Remember to check event log in case if something went wrong.