Forum Discussion
Hi Claudius the important distinction here is "relative to the Community API root". So this is an API path, not a UI path. So instead, you'd have something like https://community.acme.com/api/2.0/nodes/category:discussions
To get the UI URL, you should SELECT view_href in your query.
- Claudius5 years agoBoss
Argh! I didn't even know such thing as a community API root exists.
I am right now building a navigation menu and thought the nodes collection would lend itself ideally for that. Unfortunately there is no view_href field in the collection I could use. That's a bummer since this collection is the only one exposing group hub nodes. They are neither returned in the boards nor the categories collections.
Any other tips where I easily could get view_hrefs of group hubs alongside other node types?
- luk5 years agoBoss
Claudius you can get the view_href, just try it =)... (don't believe the docs):
SELECT id, view_href, href, title, short_title FROM nodes WHERE node_type = 'category'
EDIT: Maybe I got you wrong? Because view_href is definitely documented for the nodes collection.
Related Content
- 8 years ago