Allows additional information to be added to a page such as meta tags, raw headers and footers and set custom headers.
IPageOutputController is defined in the Telligent.Evolution.Extensibility.Urls.Version1 namespace of Telligent.Evolution.Platform.dll
Definition
interface IPageOutputController
{
string CanonicalUrl { set; }
void AddOpenGraphNamespace(string prefix, string url);
void AddRawHtmlFooter(string html);
void AddRawHtmlHeader(string html);
void SetHtmlMeta(string name, string value);
void SetHttpHeader(string name, string value);
void SetOpenGraphTag(string property, string content);
void SetStatusCode(int statusCode);
}
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| CanonicalUrl | string | Overrides the default canonical url rendered for a page. |
Methods
void AddOpenGraphNamespace(string prefix, string url);
Adds an Open Graph namepsace definition to the page head element.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| prefix | string | Prefix | Required | ||
| url | string | Url | Required |
void AddRawHtmlFooter(string html);
Adds raw string data to the page footer before the close of the body tag. Good for things like javascript.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| html | string | Html | Required |
void AddRawHtmlHeader(string html);
Adds raw string data to the page head. Good for things like javascript.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| html | string | Html | Required |
void SetHtmlMeta(string name, string value);
Adds a META tags to the page head.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| name | string | Name | Required | ||
| value | string | Value | Required |
void SetHttpHeader(string name, string value);
Sets additional http headers for the page.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| name | string | Name | Required | ||
| value | string | Value | Required |
void SetOpenGraphTag(string property, string content);
Adds an Open Graph META tags to the page head.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| property | string | Property | Required | ||
| content | string | Content | Required |
void SetStatusCode(int statusCode);
Sets the HTTP status code for thr response.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| statusCode | int | Status Code | Required |