Blog Post
Claudius
4 years agoBoss
adriana4u within the hasAncestors() function brackets you put the category id as a string (that's why it is written in double quotes). The additional
coreNode.id == "Developer"
comparison is necessary because the hasAncestors() wouldn't match for the category itself. So the correct code to show an indicator everywhere within the Developer category here on Atlas would be
coreNode.hasAncestor("Developer") == true || coreNode.id == "Developer"