Adds support for @mentions. Implementing this will add the content type to the list of content found using @mentions. Searches for matching content will be performed against the search index. Content must populate contentid, contenttypeid, titlelookup, applicationid, and containerid fields in the search index.
IIndexedMentionableContentType
is defined in the Telligent.Evolution.Extensibility.Content.Version2
namespace of Telligent.Evolution.Platform.dll
Definition
interface IIndexedMentionableContentType : IContentType, IPlugin, ISearchableContentType { string GetMentionPreviewHtml(Guid contentId, MentionPreviewOptions options); string GetMentionViewHtml(Guid contentId, MentionViewOptions options); }
Methods
string GetMentionPreviewHtml(Guid contentId, MentionPreviewOptions options);
Specifies the html for generating a preview of the @mention of the specified content.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
options | MentionPreviewOptions | Options | Required |
Return Type
string
string GetMentionViewHtml(Guid contentId, MentionViewOptions options);
Specifies the html used to render the @mention of the content in the parent content. This is commonly the title of the content linked to itself on the site.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
options | MentionViewOptions | Options | Required |
Return Type
string