Skip to main contentgetNodeByKey
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ContensisClient.taxonomy.getNodeByKey('0/1').then(node => {
console.log("Taxonomy getNodeByKey:");
console.log(node);
});
ContensisClient.taxonomy.getNodeByKey({
key: '0/1',
order: 'defined',
childDepth: 10,
language: 'fr-FR'
}).then(node => {
console.log("Taxonomy getNodeByKey with options:");
console.log(node);
});
getNodeByPath
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ContensisClient.taxonomy.getNodeByPath('Root/StructuredContent').then(node => {
console.log("Taxonomy getNodeByPath:");
console.log(node);
});
ContensisClient.taxonomy.getNodeByPath({
path: 'Root/StructuredContent',
order: 'defined',
childDepth: 10,
language: 'fr-FR'
}).then(node => {
console.log("Taxonomy getNodeByPath with options:");
console.log(node);
});
resolveChildren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ContensisClient.taxonomy.resolveChildren('0/1').then(node => {
console.log("Taxonomy resolveChildren with taxonomy node key:");
console.log(node);
});
ContensisClient.taxonomy.resolveChildren({ key: '0/1', name: '', path: '', hasChildren: true }).then(node => {
console.log("Taxonomy resolveChildren with taxonomy node:");
console.log(node);
});
ContensisClient.taxonomy.resolveChildren({ key: '0/1', order: 'defined', childDepth: 10, language: 'fr-FR' }).then(node => {
console.log("Taxonomy resolveChildren with options and taxonomy node key:");
console.log(node);
});
ContensisClient.taxonomy.resolveChildren({ node: { key: '0/1', name: '', path: '', hasChildren: true }, order: 'defined', childDepth: 99, language: 'fr-FR' }).then(node => {
console.log("Taxonomy resolveChildren with options and taxonomy node:");
console.log(node);
});