how to get stats
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 11.9k
- Forks
- 1.5k
- Avg merge
- 17h 55m
- Merged PRs (30d)
- 3
Description
im new to liquid
i use this project https://github.com/crowdfundhq/site
in documentation is a drop -> "stats" - Statistics about your site and campaigns
how i use it to get all campaign.pledged etc.
i do it now with loops but i think there is a better solution
{% assign campaigns = current_site.campaigns.active | all %}
{% for campaign in campaigns %}
{% assign allpledg = campaign.pledged | plus: allpledg %}
{% endfor %}
{{ allpledg | to_currency: precision: 0 }}
maybe in shopify is a simular stats drop
or somebody can tell me how to use drops with an example
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is identified; start by determining whether Liquid provides a stats drop and how the external crowdfundhq/site campaign data is exposed. Done would require a documented, concrete example showing how to obtain the requested campaign statistics, or a clear explanation that the requested aggregation is not supported.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100