Article Hashtags

This interface provides #tag support for the content type. It provides a controller that gives access to several methods not available in the API.

Why should I make my content hashtaggable?

Similar to tags the hashtag allows users to provide keywords but it also provides an easy way to tag content inline.

Creating an IHashTaggableContentType plugin

The IHashTaggableContentType interface is defined in the Telligent.Evolution.Extensibility.Content.Version1 namespace. It also inherits from ITaggableContentType  with one added method to set a controller. For the following example, we'll add the IHashTaggableContentType to the existing content type plugin defined in the Content Type Example , updating the LinkItemContentType definition to:

public class LinkItemContentType : IContentType, ITranslatablePlugin, IHashTaggableContentType

The IHashTagController plugin type is used to bind the tags embedded in content to the content as it changes. The controller should be used when creating and updating your content. For example _hashTagController.AddUpdateHashTags(content.ContentId, "Description", content.HtmlDescription("Raw")); this would create the appropriate tags for your content in the platform. To minimally implement the IHashTaggableContentType (without the change implementation since the sample app is not editable), the implementation would just be:

#region IHashTaggableContentType

private IHashTagController _hashTagController;

public void SetController(IHashTagController controller)
{
    _hashTagController = controller;
}

#endregion

Once the project is rebuilt and the plugin is  , editing UIs would add support for entering hashtags when the ContentTypeId being edited is specified using the evolutionHtmlEditor jQuery Plugin .