New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Related collection name in route instead of id?

Dimo Trifonov April 23, 2019 by Dimo Trifonov

Hey team! I have a collection called Categories which is related to Blog. I am trying to create a hierarchical structure like /blog/{category}/{slug}. But I only get the id of the relation, not the name of the category. Any idea how to grab the name?

Many thanks!

Answered by Dimo Trifonov!
>>>>>>> Answered <<<<<<<
3 Replies