Skip to main content

TaxonomyGetNodeByKeyOptions

Log in to add to favourites

Deprecation warning

Taxonomy in entries is deprecated and may be removed from future releases of Contensis. We strongly recommend using content types and entries to categorise content.

A structure that supports multiple configuration options for requesting taxonomy nodes.

Properties

Name Type Description
key string The taxonomy node key
order string Specifies the order of taxonomy nodes: 'defined' or 'alphabetical' (defaults to 'alphabetical')
childDepth number The depth of resolved children (defaults to 1)
language string The language code for the retrieved taxonomy nodes

Example

JavaScript
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);
});

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request