Click or drag to resize

MarkForPublishServicesCheckContentItemsMarkedForTarget Method


Retrieves the Mark-for-publish information on given page(s).

Similar to the operation "GetPageMarks". However, this operation is geared towards returning mark for publishing information on a perticular Publishing Target. Also, it's return information is a lot simpler.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<PageMarkForPublishSimpleInfo[]> CheckContentItemsMarkedForTarget(
	GetContentItemMarksInput data,
	string pubTarget
)

Parameters

data
Type: GetContentItemMarksInput

The information on which pages to check whether or not they are marked for given Publishing Target

Examples
Sample JSON input
JavaScript
{
    "pubTargetName": "Live",
    "pageIds": ["x1", "x2", "RecycleBin", "x112", "x111", "x110", "x100", "x99", "x89", "x5", "x3", "x11", "x12", "x15", "x9"]
}
pubTarget
Type: SystemString
The Id of the Publishing Target

Return Value

Type: XHRServiceResponseGenericPageMarkForPublishSimpleInfo

Collection of page marking information

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": [{
        "markedForPublish": false,
        "pageId": "x1"
    }, {
        "markedForPublish": false,
        "pageId": "RecycleBin"
    }, {
        "markedForPublish": true,
        "pageId": "x2"
    }, {
        "markedForPublish": false,
        "pageId": "x112"
    }, {
        "markedForPublish": false,
        "pageId": "x111"
    }, {
        "markedForPublish": false,
        "pageId": "x110"
    }, {
        "markedForPublish": false,
        "pageId": "x100"
    }, {
        "markedForPublish": false,
        "pageId": "x99"
    }, {
        "markedForPublish": true,
        "pageId": "x89"
    }, {
        "markedForPublish": true,
        "pageId": "x5"
    }, {
        "markedForPublish": true,
        "pageId": "x3"
    }, {
        "markedForPublish": true,
        "pageId": "x11"
    }, {
        "markedForPublish": true,
        "pageId": "x12"
    }, {
        "markedForPublish": false,
        "pageId": "x15"
    }, {
        "markedForPublish": true,
        "pageId": "x9"
    }]
}
Remarks
This operation is used on Ingeniux CMS client to found if Pages show on Site Tree are marked for given Publishing Target or not
See Also