This interface provides support for contextually identifying the current content given a web context. It is used to support widgets that should only be shown when a content type is present on the page (i.e. the Blog Post widget only shows when a single blog post is in the context of the page).
IWebContextualContentType
is defined in the Telligent.Evolution.Extensibility.Content.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface IWebContextualContentType : IContentType, IPlugin { IContent GetCurrentContent(IWebContext context); }
Methods
IContent GetCurrentContent(IWebContext context);
Returns the content, if any, requested in the given context. If the content type is not contextually identifiable, the method should return null.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
context | IWebContext | Context | Required |