Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement group_by in with_scope? #131

Open
danielmyasnikov opened this issue Feb 22, 2016 · 1 comment
Open

Implement group_by in with_scope? #131

danielmyasnikov opened this issue Feb 22, 2016 · 1 comment

Comments

@danielmyasnikov
Copy link

Looking for something that has functionality:

{% with_scope group_by: category_id %}
    {% for group in content.posts %}
       {% for post in group %}
         {% post.title %}
       {% endfor %}
    {% endfor %}
{% endwith_scope %}

I have seen that it doesn't exist, however how would you implement it?

@danielmyasnikov
Copy link
Author

group_by can be similar to Array#group_by method

@did did transferred this issue from locomotivecms/wagon Apr 8, 2019
@did did added the enhancement label Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants