How to get the collection type and id associated to a item URL ? #178
-
Hi, From the api endpoint given by the navitation plugin, I can't build my link in front with the corresponding URL. What is the best practice to, from the URL, get the associated collection type and id ? For now, I'm just loop into the full tree to find it, but I gess there is a better way. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, Our plugin has a You can also apply the |
Beta Was this translation helpful? Give feedback.
Hello,
Our plugin has a
render
endpoint that returns a tree or a list of all navigation items. There you can find arelated
field with both id and collection type of the content types associated with your navigation items.You can also apply the
path
parameter to therender
endpoint to render only a subtree of navigation items. You can read all about it here. I hope this will help you but if you have further questions feel free to ask them and I will try my best to answer them. 🙂