This interface adds support for @mentions within contents of the specified content type. Whereas IMentionableContentType lets content be mentioned, this interface lets content mention other content.
IMentionContainingContentType
is defined in the Telligent.Evolution.Extensibility.Content.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface IMentionContainingContentType : IContentType, IPlugin { void SetController(IMentionController controller); }
Methods
void SetController(IMentionController controller);
This method gives the content type its own controller with privileged access to method calls not available in the API and is called each time the plugin is loaded. The controller should be saved and used to notify Telligent Evolution when content has been added or updated. The controller also provides support for rendering @mentions. When the content is rendered, it should pass any html that may contain an @mention into the controller.FormatMentionsForRendering(html, target) method. This method returns the html with the @mentions fully rendered.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
controller | IMentionController | Controller | Required |