liquid

Locomotive CMS: Dynamically Target content_types with Liquid Variable

允我心安 提交于 2020-12-15 07:15:47
问题 I'm building a custom navigation snippet in Locomotive CMS and I want content_type entries to be listed in the navigation along with pages. Specifically (and obviously) I only want entries listed if the content_type has a content_type_template set up. My plan was to set a handle (refereneced here but ultimately missing from the documentation) on the content_type_template page and then run the following logic when iterating through pages: {% assign myContentType = loopPage.handle %} {% for

How do I loop through all the products of a store using Liquid (Shopify)?

蓝咒 提交于 2020-12-01 12:08:42
问题 I can't. I know. Shopify imposes a limit when it comes to the number of products one can loop through on a page. The current limit is 50. Actually, this is not true . One can loop through all the products of a store using liquid : {% paginate collections["all-products"].products by 10000 %} {% for product in collections["all-products"].products %} {% comment %}looping through all 10000 products{% endcomment %} {% endfor %} {% endpaginate %} In the above example, if a store has up to 10000

How do I loop through all the products of a store using Liquid (Shopify)?

a 夏天 提交于 2020-12-01 12:07:02
问题 I can't. I know. Shopify imposes a limit when it comes to the number of products one can loop through on a page. The current limit is 50. Actually, this is not true . One can loop through all the products of a store using liquid : {% paginate collections["all-products"].products by 10000 %} {% for product in collections["all-products"].products %} {% comment %}looping through all 10000 products{% endcomment %} {% endfor %} {% endpaginate %} In the above example, if a store has up to 10000