Hello,
I need a little bit help understanding the endpoint
v1/categories.
I use the following code:
IMWS.get('v1/categories',{
path: 'Persons,Date',
recursive: false,
fields: 'name,sortsequence,children'
}).then(function(response) {
console.log(response);
});
And the console returns:
{
"categories": [
{
"name": "Date",
"children": [
{
"name": "2000 - 2009",
"sortSequence": 0
},
{
"name": "2010 - 2019",
"sortSequence": 0
},
],
"sortSequence": 0
},
{
"name": "Persons",
"children": [
{
"name": "B",
"sortSequence": 0
},
{
"name": "C",
"sortSequence": 0
},
{
"name": "V",
"sortSequence": 0
},
{
"name": "W",
"sortSequence": 0
},
{
"name": "Z",
"sortSequence": 0
}
],
"sortSequence": 0
}
]
}
Why is
sortSequence always
0? I thought it would be something like (for Persons):
name | sortSequence |
B | 0 |
C | 1 |
V | 2 |
W | 3 |
Z | 4 |
The help says:
The sort sequence (0-based index) for this category, relative to all categories on the same level under the same parent.So this shouldn't be always 0, or am I missing something?
Kind regards,
Axel
Did you define a manual sort sequence in the Category View for this?
Else the sort sequence is in the order added or always the same...
Ah, okay. Understood.
Thank you.
I have extended the documentation to explicitly mention the custom sort sequence part.