Click or drag to resize

TaxonomyTreeServicesGetAssociationsToPage Method


Retrieves all the Categories associated with given Page

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<CategoryAssociationsInfo> GetAssociationsToPage(
	GetPageCategorizationsInput data
)

Parameters

data
Type: GetPageCategorizationsInput

Object containing the Id of the Page to get associations information for

Examples
Sample JSON input
JavaScript
{
    "data": {
        "pageId": "x9"
    }
}

Return Value

Type: XHRServiceResponseGenericCategoryAssociationsInfo

Collection of information of Category Nodes that are associated with the given Page.

Each item contains "attributes" and "elements" listing. "attributes" has Category Id only. "elements" item is a 3 items array that has Id, Name and Path of the Category Node item.

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "ids": ["CategoryNodes\/33", "CategoryNodes\/67", "CategoryNodes\/2"],
        "info": [{
            "attributes": {
                "categoryId": "CategoryNodes\/33"
            },
            "elements": ["CategoryNodes\/33", "Cydippida", "Animalia\/Ctenophora\/Cydippida"]
        }, {
            "attributes": {
                "categoryId": "CategoryNodes\/67"
            },
            "elements": ["CategoryNodes\/67", "Monera", "Monera"]
        }, {
            "attributes": {
                "categoryId": "CategoryNodes\/2"
            },
            "elements": ["CategoryNodes\/2", "Fungi", "Fungi"]
        }]
    }
}
See Also