Hi there,
I am using Liquid with Planning Center Online (http://
www.planningcenteronline.com/) to make a custom report. I have some
variables provided to me, but I can't figure out how to just use
these, and I need my own array.
I can not see any syntax in the "Liquid for Designers" to show a user-
created array. I have tried lots of things, including the following,
none of which work:
{% assign array = 1,2,3,4,5,6,7 %}
{% assign positions = ('Leader', 'Sound', 'Words') %}
{% assign positions = ['Leader', 'Sound', 'Words'] %}
{% assign positions = {Leader', 'Sound', 'Words'} %}
I even tried the one in the documentation example (but it's a comment
in the example):
# array = [1,2,3,4,5,6]
{% for item in array limit:2 offset:2 %}
... so I tried
{% assign array = [1,2,3,4,5,6] %}
{% for item in array limit:2 offset:2 %}
Could someone please let me know if and how I do this - and perhaps
this sort of thing could be added to the basic page. It would be great
if each example was stand-alone; like the one above could be copied
and would work, not assuming some variable 'array' already exists.
Thank you!