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 →

Create a page for a single entry page by URL

Bart Clarebout January 6, 2019 by Bart Clarebout

It seems such a basic thing but I can't seem to find any example of loading data as content from a single entry based on the segment-values in the url??

I have been reading and watching vids but nowhere I could find an example.

I have an url like:

http://www.site.com/projects/{realisation}/{location}/{slug}

And now I want show a page with only data from the entry where realisation = {realisation}, location = {location} and slug = {slug} from the collection 'Projects'. What are the necessary steps?

PS I know I could use the single id but for the indexing of the url's I prefer the other. I wouldn't know how to do it with the id either.

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
2 Replies
2 Followers