{% set year = now|date('Y') %}
{% set week = now|date('W') %}
{% set all_current_movies = page.find('movies/#{year}-kw-#{week}').collection %}
how can i fix this, so that Grav is actually referencing the pages? thanks
{% set year = now|date('Y') %}
{% set week = now|date('W') %}
{% set all_current_movies = page.find('movies/#{year}-kw-#{week}').collection %}
how can i fix this, so that Grav is actually referencing the pages? thanks
'movies' ~ year ~ '-kw-'
…
thank you.
{% set all_current_movies = page.find('/movies/' ~ year ~ '-kw-' ~ week).collection %}
is the answer.