IEmbeddableContentFragmentType
is defined in the Telligent.Evolution.Extensibility.EmbeddableContent.Version2
namespace of Telligent.Evolution.Platform.dll
Definition
interface IEmbeddableContentFragmentType : IPlugin { string ContentFragmentDescription { get; } string ContentFragmentName { get; } PropertyGroup[] EmbedConfiguration { get; } Guid EmbeddedContentFragmentTypeId { get; } string PreviewImageUrl { get; } void AddUpdateContentFragments(Guid contentId, Guid contentTypeId, IEnumerable<IEmbeddableContentFragment> embeddedFragments); bool CanEmbed(Guid contentTypeId, int userId); string Render(IEmbeddableContentFragment embeddedFragment, string target); EmbeddableContentFragmentValidationState Validate(IEmbeddableContentFragment embeddedFragment); }
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
ContentFragmentDescription | string | |||
ContentFragmentName | string | |||
EmbedConfiguration | PropertyGroup[] | |||
EmbeddedContentFragmentTypeId | Guid | |||
PreviewImageUrl | string |
Methods
void AddUpdateContentFragments(Guid contentId, Guid contentTypeId, IEnumerable<IEmbeddableContentFragment> embeddedFragments);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required | ||
embeddedFragments | IEnumerable<IEmbeddableContentFragment> | Embedded Fragments | Required |
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
string Render(IEmbeddableContentFragment embeddedFragment, string target);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
embeddedFragment | IEmbeddableContentFragment | Embedded Fragment | Required | ||
target | string | Target | Required |
Return Type
string
EmbeddableContentFragmentValidationState Validate(IEmbeddableContentFragment embeddedFragment);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
embeddedFragment | IEmbeddableContentFragment | Embedded Fragment | Required |