Enables scripted content fragments to use content
Properties
Name | Access | Type | Description |
---|---|---|---|
Current | Read | Content | The current contextual content |
CurrentInclusive | Read | Content | The current contextual content. Returns a contextual application or container that is also content if a strict content item is not available contextually. |
Methods
Get
Get Overload 1
Retrieve a specific piece of content
Velocity
#set($contentResponse = $core_v2_content.Get($contentId))
JavaScript
var contentResponse = core_v2_content.Get(contentId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required |
Get Overload 2
Retrieve a specific piece of content
Velocity
#set($contentResponse = $core_v2_content.Get($contentId, $contentTypeId))
JavaScript
var contentResponse = core_v2_content.Get(contentId, contentTypeId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required |