Skip to content

Loading pages from collections dynamically #8501

Answered by jasonvarga
dijkr asked this question in Q&A
Discussion options

You must be logged in to vote

If I'm understanding, you are on a page like /foo/bar and you want to filter that collection by the slug (bar, maybe).

You can do something like this:

{{ collection:promotions :slug:is="segment_2" }}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dijkr
Comment options

@jasonvarga
Comment options

Answer selected by jasonvarga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants