locomotivecms / steam

The rendering stack used by both Wagon and Station (new name of the engine). It includes the rack stack and the liquid drops/filters/tags.
MIT License
38 stars 59 forks source link

with_scope parent doesn't work on pages #232

Open greyskin opened 1 year ago

greyskin commented 1 year ago

{% with_scope published: true %} works fine - indicating that with_scope does work on page collections.

However, the page parent drop doesn't appear to be accessible. Is it supposed to be?

The following code will print out a link to every page on a site, instead of only pages that are children of the specified parent page:

{% with_scope parent: some_page_slug %}
    {% for page in site.pages %}
        <a href="{% path_to page %}">{{ page.title }}</a>
    {% endfor %}
{% endwith_scope %}