Download
Last stable v 5.2 2024-11-01
API URL | /dir/tree ? [folders] [id] |
Description | Get CMS pages tree RESTFul API |
Access | Restricted to roles: admin, demo |
Rquest method | GET |
Request data type | n/a |
Request data |
|
Response type | JSON |
Response data |
[ // dynatree object data
{
key: '0', // root node key
seq: '', // item SEQ
pid: '', // item PID
url: '', // item URL
title: '/', // root node title
folder: true, // node is folder
hideCheckbox: true, // hide checkbox for root node
children: [ // tree children nodes array
{
key: 'folder ID in DB table', // ex. '1'
seq: '552a4a63c6a0f', // item SEQ
pid: '', // item PID
url: '', // item URL
title: 'folder title', // ex. "Program Guide"
editor: 'last update editor name', // ex. 'Linkoln Edgar', 'CMS' - if cms builtin administrator
timestamp: 'last update timestamp' // ex. '2013-09-02 15:04:33'
folder: true, // node is folder
childCounter: 16, // child nodes counter
children:[ // node children items array
{
key: 'DOC_XXX', // page ID in DB table
seq: '53e8ba548b8e1', // item SEQ
pid: '53e8ba548b6d4', // item PID
url: 'page URL', // item URL
title: 'folder title',
type: 'type code', // page type [0 | 1 | 2], 0 - regular page, 1 - model, 2 - sample
model: 0, // having model [0 | 1], 1 - true
tooltip: 'some tooltip text (may have HTML tags)',
extraClasses: 'classes', // classes for styling: cms-tree-model, cms-tree-model-restricted, cms-tree-sample, cms-tree-sample-m, cms-tree-sample-restricted, cms-tree-sample-m-restricted, cms-tree-page-m, cms-tree-page-restricted, cms-tree-page-m-restricted
editor: 'last update editor name',
timestamp: 'last update timestamp',
folder: false,
}
...
]
}
...
]
}
]
|