Forum Discussion
PaoloT
12 years agoLithium Alumni (Retired)
Hi Gursimrat,
rather than via REST, have you tried using the coreNode context object? I think you should be able to retrieve this information by looking for the ID of the coreNode or by looking up at its ancestors.
The documentation can be found here
Regards,
Gursimrat
12 years agoLeader
Or is there any widget in Lithium which can display the boards in the current category?
Lets say Category Animals has boards Tiger, Horse, Rhino, Lion, Elephant etc and when I am inside Board Horse, I should be able to see the other 4 boards inside Animals Category.
Thanks
- AdamN12 years agoKhoros Oracle
Here are a couple more examples of working with coreNode.ancestors that might give you some ideas:
- sunny_mody12 years agoAdvisorI think you would need to make a custom component and get the category id using ${coreNode.ancestors[0].id}, then get the boards from this category using rest api (/restapi/vc/categories/id/${coreNode.ancestors[0].id}) and parse the response to get all boards.
You would surely need to eliminate the board which are currently on, this can be done using some freemarker logic.
Thanks