ITemplatableEmbeddableContentFragmentType is defined in the Telligent.Evolution.Extensibility.EmbeddableContent.Version2 namespace of Telligent.Evolution.Platform.dll
Definition
interface ITemplatableEmbeddableContentFragmentType : IEmbeddableContentFragmentType, IPlugin { string ContentFragmentDescription { get; } string ContentFragmentName { get; } Guid EmbeddedContentFragmentTypeId { get; } string PreviewImageUrl { get; } bool CanEmbed(Guid contentTypeId, int userId); bool PropertyTemplateExists(string templateName); void RenderPropertyTemplate(string templateName, TextWriter writer, IPropertyTemplateOptions options); }
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| ContentFragmentDescription | string | |||
| ContentFragmentName | string | |||
| EmbeddedContentFragmentTypeId | Guid | |||
| PreviewImageUrl | string |
Methods
bool CanEmbed(Guid contentTypeId, int userId);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| contentTypeId | Guid | Content Type Id | Required | ||
| userId | int | User Id | Required |
Return Type
bool
bool PropertyTemplateExists(string templateName);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| templateName | string | Template Name | Required |
Return Type
bool
void RenderPropertyTemplate(string templateName, TextWriter writer, IPropertyTemplateOptions options);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| templateName | string | Template Name | Required | ||
| writer | TextWriter | Writer | Required | ||
| options | IPropertyTemplateOptions | Options | Required |