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 →

Collection url won't load the entry details.

Lucas Gómez June 26, 2019 by Lucas Gómez
  • Contents of routes.md file:
  /articles/{slug}:
    template: articles/detail
  /abstracts/{id}:
    template: abstracts/detail
    load: '{id}'
collections:
  articles: '/articles/{slug}'
  abstracts: '/abstracts/{id}'


* And with that I get the following urls:

/abstracts/96f8ee53-b851-42a7-8644-3af98e2da04c [1]
/article/entry-1 [2]


With [1] I have to enclose the detail template with {{ get_content from="{id}" }} to get the data and with [2] I wasn't able to make it work at all, but according to the route documentation it should be automatically hooked, am I wrong?

Thanks in advance.

Answered by Jack McDade!
>>>>>>> Answered <<<<<<<
3 Replies
2 Followers